> To convert to an positive integer, use truncate:
>     $ p6 'say 1000.rand.truncate;'
>     876

or use pick:

perl6 -e 'say (^1000).pick'
209

Brian

Reply via email to