Am 01.02.2016 um 03:10 schrieb clipka:
> Am 01.02.2016 um 02:55 schrieb Mike Horvath:
>> How do I calculate a random integer between n and p, inclusively?
>
> floor( rand(R)*((p-n)+1) + 0.5 )
>
> should do the trick
... provided you figure out that you need to add n ;)
Oops.
Post a reply to this message
|