Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rnd [2019/05/07 22:01] – neils | rnd [2021/01/18 11:35] (current) – neils | ||
---|---|---|---|
Line 15: | Line 15: | ||
print " | print " | ||
if rnd() < 0 then print " | if rnd() < 0 then print " | ||
- | + | ||
+ | The pseudo-random number generator is seeded with the software jiffy clock value on program startup. | ||
+ | |||
+ | **Note for VICE users**: if you run your program using autorun, the jiffy value will be the same every time you run your program and therefore random sequences will always be the same, too. You can improve this a little bit by setting the '' |