• Welcome to PlanetSquires Forums.
 

question about comparing multiple numeric values

Started by veltesian, March 11, 2024, 01:36:39 PM

Previous topic - Next topic

veltesian

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....

Paul Squires

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.
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer