Randomize with Seed doesn't seem to repeat correctly #29

Open
opened 2023-03-25 15:48:04 +00:00 by john · 0 comments
Owner

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.

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.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TheIndustriousRabbit/amos-professional#29
No description provided.