RANDINT parameters
|
07-15-2014, 12:58 AM
Post: #2
|
|||
|
|||
RE: RANDINT parameters
The order of the 2nd and 3rd arguments doesn't matter:
RANDINT(a,b,c) is the same as RANDINT(a,c,b). Congratulations, you found a bug! If the lower limit is negative, it will never be returned; furthermore, if the upper limit is also negative, then the result will sometimes be one greater than the upper limit: RANDINT(5,-2,-3) --> {-2,-2,-1,-2,-1} RANDINT(5,-4,-4) --> {-3,-3,-3,-3,-3} <0|ΙΈ|0> -Joe- |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
RANDINT parameters - Alberto Candel - 07-15-2014, 12:22 AM
RE: RANDINT parameters - Joe Horn - 07-15-2014 12:58 AM
RE: RANDINT parameters - Alberto Candel - 07-15-2014, 01:06 AM
|
User(s) browsing this thread: 1 Guest(s)