[re-sending to cc: [EMAIL PROTECTED] On Mon Jun 23 13:32:47 2008, [EMAIL PROTECTED] wrote: > > This was working: > $ ./perl6 -e 'say rand(3)' > invoke() not implemented in class 'Float' > current instr.: '_block11' pc 41 (EVAL_13:18)
According to S29:295, the rand() function no longer takes any arguments: : =item rand : : our Num method rand ( Num $x: ) : our Num term:<rand> : : Pseudo random number in range C<< 0 ..^ $x >>. That is, C<0> is : theoretically possible, while C<$x> is not. The C<rand> function : is 0-ary and always produces a number from C<0..^1>. In any case, : for picking a random integer you probably want to use something like : C<(1..6).pick> instead. I agree that Rakudo needs to give a better error message in this case, and will fix that shortly. Thanks! Pm