I know that GLBasic supports random numbers in the form of RND(Max), but this always returns a value between 0 and the Max value.
Is there a command like RAND(Min, Max), where the command returns a value between (and inclusive of) the two values?
I have only skimmed through the Index, so maybe I missed a similar command. Does it exist, and if not, can it be added?
[EDIT] BTW I created a function to do this, but a built in command could be useful to newcomers.
Is there a command like RAND(Min, Max), where the command returns a value between (and inclusive of) the two values?
I have only skimmed through the Index, so maybe I missed a similar command. Does it exist, and if not, can it be added?
[EDIT] BTW I created a function to do this, but a built in command could be useful to newcomers.