[Push] MinRandomInteger > MaxRandomInteger

PerPlex Ed edperplex at yahoo.com
Mon Jun 21 09:53:20 EDT 2010


Thanks.

For the record, abstracting from implementation details, this means that

in any case Int.Rand and the erc generator should always use the smaller of the two value MinRandomInteger and MaxRandomInteger as inclusive lower bound and the bigger one as inclusive upper bound.


Lee said:

>On the latter: it appears to act as if the argument was positive and then negate the result.

PerPlexEd said:  
> Alternatively, what happens when the your lisp function
> 
> random::random-integer
> 
> is called with a negative argument?


      



More information about the Push mailing list