12

Which version of BASIC uses RANDOM as the pseudo-random seed command?

I believe that the following is correct, given the linked-to articles:

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

6
  • 3
    For completion, QBASIC uses RANDOMIZE
    – OrangeDog
    Jan 12 at 9:35
  • The PEEK(78) and PEEK(79) in the linked post aren't part of the RNG, they're being used as an input to RND(-<n>), using system memory to get some entropy.
    – IMSoP
    Jan 12 at 15:17
  • @IMSoP - ah yes, you are quite correct.... I'll update the post Jan 12 at 15:41
  • Another one for your list: Locomotive BASIC uses RANDOMISE / RANDOMISE TIME : cpcwiki.eu/index.php/Locomotive_BASIC#RANDOMIZE_.5Bseed.5D
    – freedomn-m
    Jan 12 at 18:04
  • note that RAND is in ZX81 BASIC, while the ZX Spectrum has RANDOMIZE (but ZX80 had RANDOMISE (!)) Jan 12 at 18:05

1 Answer 1

21

RANDOM is the keyword TRS-80 Level II BASIC uses to seed the random number generator. For a description see here.


On a side note, the BASIC used is mentioned in the referred article right beside the listing: enter image description here

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .