doc: added comment for standard::math::Float::rand
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 27 Feb 2014 20:34:05 +0000 (12:34 -0800)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 27 Feb 2014 20:34:05 +0000 (12:34 -0800)
Alexis Laferrière <alexis.laf@xymus.net>

lib/standard/math.nit

index 5d73c8e..fd965f4 100644 (file)
@@ -44,6 +44,7 @@ redef class Float
        fun log: Float is extern "kernel_Float_Float_log_0"
        fun exp: Float is extern "kernel_Float_Float_exp_0"
        
+       # Returns a random `Float` in `[0.0 .. self[`.
        fun rand: Float is extern "kernel_Float_Float_rand_0"
        fun hypot_with( b : Float ) : Float is extern "hypotf"
 end