On 1/31/2016 10:16 PM, clipka wrote:
> 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.
>
Where do I add n?
Post a reply to this message
|