> Current definition means that for positive n you get exactly n
> values, each with probablility 1/n.  Your proposed change would
> break this nice relationship.  For people who can not read
> between lines we could add phrase: 'Error if n <= 0.'.

Then the signature for random will be awkward: PI -> NNI

For my definition, it's valid for all integers (if n<0, return  random
integer from -n to 0), although the probablility will be 1/(n+1).

You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fricas-devel+unsubscr...@googlegroups.com.
To post to this group, send email to fricas-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to