Randomize with Seed doesn't seem to repeat correctly #29
Labels
No Label
AMOS Pro Bugs List
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TheIndustriousRabbit/amos-professional#29
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I just came upon this and I recalled it doesn't work in AMOS accordingly to the description. It's Randomize seed. Following the manual (https://www.ultimateamiga.co.uk/HostedProjects/AMOSFactory/AMOSProManual/5/527.html):
RANDOMIZE
instruction: set the seed for a random number
Randomize seed
In practice, the numbers produced by the RND function are not genuinely random at all. They are computed by an internal mathematical formula, whose starting point is taken from a number known as a "seed". This seed is set to a standard value whenever AMOS Professional is loaded into your Amiga, and that means that the sequence of numbers generated by the RND function will be exactly the same each time your program is run.
In practice, it doesn't work. The specified seed doesn't repeat generated numbers, they are always random.