|
callp ceeran0(seed: float: *omit)
Let x = (%dech(float:63:62) * (max-min + 1))
If max = 15 and min = 5, we have
x = (%dech(float:63:62) * (15-5 + 1))
= (%dech(float:63:62) * (11))
= [0,10] after truncation occurs, where [x,y] is the range of numbers x-y, including x and y.
Now, we have
rnd = [0,10] + min
= [0,10] + 5
= [5,15]
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.