PlanetSquires Forums

Support Forums => General Board => Topic started by: veltesian on March 11, 2024, 01:36:39 PM

Title: question about comparing multiple numeric values
Post by: veltesian on March 11, 2024, 01:36:39 PM
ok .... i have this new project started & its basically a button that generates 5 random numbers
i want to know how can i use a separate variable to decide which of the 5 numbers is highest ????

perhaps this is some super simple program example... but i was hoping that this was something that
could help me understand much better in how i can generate a truly random non-recursive number
sequence & i was thinking about this from a week ago.

there is also something i want to know about generating a TRULY random number that does not suffer
recursion but if recursion might be eminent, then it generates an altogether different number or
a MSGBOX appears that says "all randomization has been exhausted/counted/produced/etc"

recursion = a number that constantly or perpetually repeats the same number when generated....
Title: Re: question about comparing multiple numeric values
Post by: Paul Squires on March 12, 2024, 09:29:02 AM
There was a lot of discussion on the FB forum about random numbers. Take a look over there for posts by deltarho[1859] because he has posted a lot on the subject. For example:
https://www.freebasic.net/forum/viewtopic.php?t=32129
https://www.freebasic.net/forum/viewtopic.php?p=300318
https://www.freebasic.net/forum/viewtopic.php?p=300720
https://www.freebasic.net/forum/viewtopic.php?p=298279

Using RANDOMIZE TIMER should be sufficient in most cases to generate a random seed for your RANDOM function.