Author: colomon
Date: 2010-07-16 15:15:21 +0200 (Fri, 16 Jul 2010)
New Revision: 31727

Modified:
   docs/Perl6/Spec/S32-setting-library/Numeric.pod
Log:
[spec] Add Real.rand to spec, as it was already in the spectests and Rakudo.  
Change term:<rand> description to refer to it.

Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Numeric.pod     2010-07-16 13:07:17 UTC 
(rev 31726)
+++ docs/Perl6/Spec/S32-setting-library/Numeric.pod     2010-07-16 13:15:21 UTC 
(rev 31727)
@@ -19,8 +19,8 @@
 
     Created: 19 Mar 2009 extracted from S29-functions.pod
 
-    Last Modified: 11 June 2010
-    Version: 9
+    Last Modified: 16 July 2010
+    Version: 10
 
 The document is a draft.
 
@@ -148,8 +148,8 @@
 
 Pseudo random number in range C<< 0 ..^ 1 >>.  That is, C<0> is
 theoretically possible, while C<1> is not.  Note that there is no
-unary C<rand> function in PerlĀ 6, so just multiply C<rand> by your
-desired multiplier.  For picking a random integer you probably want
+unary C<rand> function in PerlĀ 6, but there is a C<rand> method.  
+For picking a random integer you probably want
 to use something like C<(1..6).pick> instead.
 
 =item sqrt
@@ -272,6 +272,14 @@
 you I<must> call C<srand()> yourself if you wish to specify a deterministic 
seed
 (or if you wish to be differently nondeterministic).
 
+=item rand
+
+ our Num multi method rand (Real $x:) is export
+
+Pseudo random number in range C<< 0 ..^ $x >>.  That is, C<0> is
+theoretically possible, while C<$x> is not.  For picking a random integer
+you probably want to use something like C<(1..6).pick> instead.
+
 =item cis
 
     our Complex multi method cis (Real $angle:) is export

Reply via email to