Hello everyone,

I know that the randomrange call from the Irvine library reads from EAX. Whatever number is in EAX is the max it can be.

My question is...How do you set a min value for the range? Like if I wanted the range of random numbers to be 1-6 how would I do that?

Thanks in advance...

Posted on 2011-10-29 19:28:11 by msmallard
subtract the min from the maxrange, do the call, then add the min to the result .. this is called rebasing, its annoying huh, nice if the function took min too
Posted on 2011-10-30 06:04:56 by Homer