Merge remote-tracking branch 'github/pr/292/head'
[nit.git] / lib / standard / math.nit
index d122c2e..340222a 100644 (file)
@@ -45,6 +45,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