Which version of BASIC uses RANDOM
as the pseudo-random seed command?
I believe that the following is correct, given the linked-to articles:
- Atari BASIC uses
RANDOMIZE
- C64 BASIC uses
RND(-<n>)
- ZX BASIC has
RAND
as the keyboard token, but the actual code was totally inconsistant:- ZX80 uses
RANDOMISE
- ZX81 uses
RAND
- ZX Spectrum (48k/128k) uses
RANDOMIZE
- ZX80 uses
- BBC BASIC uses
RND(-<n>)
- AppleSoft BASIC uses
RND(-<n>)
1 - MS BASIC-80 uses
RANDOMIZE
- TI-BASIC uses
RANDOMIZE
- QBASIC uses
RANDOMIZE
- Locomotive BASIC uses
RANDOMISE
/RANDOMISE TIME
I can't find a variant that uses RANDOM
.
I only ask as the listing 2 in my answer to Early 1982 PCW article about pseudo random dungeon mapping has the following line:
70 RANDOM
Footnote
1 With PEEK(78)
and PEEK(79)
being commonly used to augment/supplement the randomness
RANDOMIZE
PEEK(78)
andPEEK(79)
in the linked post aren't part of the RNG, they're being used as an input toRND(-<n>)
, using system memory to get some entropy.RANDOMISE
/RANDOMISE TIME
: cpcwiki.eu/index.php/Locomotive_BASIC#RANDOMIZE_.5Bseed.5DRAND
is in ZX81 BASIC, while the ZX Spectrum hasRANDOMIZE
(but ZX80 hadRANDOMISE
(!))