my keeper on random numbers

2018-05-25 Thread ToddAndMargo
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;'

Re: What is my sub?

2018-05-25 Thread ToddAndMargo
On 05/21/2018 11:04 PM, ToddAndMargo wrote: Hi All, I need to know the name of the subroutine I am in. This is the way I use to do it in Perl 5: (my $Name = (caller(0))[3] ) ~~ s{.*::}{}; How do I do it in Perl 6? Many thanks, -T Follow up: based on Yary's wonderful advice,