- Timestamp:
- 03/31/08 20:23:51 (9 months ago)
- Files:
-
- 1 modified
-
docs/Perl6/Spec/Functions.pod (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/Perl6/Spec/Functions.pod
r19997 r20196 13 13 Mark Stosberg <mark@summersault.com> 14 14 Date: 12 Mar 2005 15 Last Modified: 24Jan 200816 Version: 1915 Last Modified: 31 Jan 2008 16 Version: 20 17 17 18 18 This document attempts to document the list of builtin functions in Perl 6. … … 296 296 =item rand 297 297 298 our Num m ulti method rand ( Num $x: )299 our Num multi rand ( Num $x = 1 )298 our Num method rand ( Num $x: ) 299 our Num term:<rand> 300 300 301 301 Pseudo random number in range C<< 0 ..^ $x >>. That is, C<0> is 302 theoretically possible, while C<$x> is not. 303 302 theoretically possible, while C<$x> is not. The C<rand> function 303 is 0-ary and always produces a number from C<0..^1>. In any case, 304 for picking a random integer you probably want to use something like 305 C<(1..6).pick> instead. 304 306 305 307 =item sign
