Hi All,

    This is my keep file submitted for your critique.

Many thanks,
-T


Perl 6: random numbers:

`rand` return a positive real number, always less than one:
    $ p6 'say rand;'
    0.268091668368972


Place a number in front of it to get a larger number:

    $ p6 'say 1000.rand;'
    565.2817971799526


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

Reply via email to