nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b86dc3d
)
doc: added comment for standard::math::Float::rand
author
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 27 Feb 2014 20:34:05 +0000
(12:34 -0800)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/standard/math.nit
b/lib/standard/math.nit
index
5d73c8e
..
fd965f4
100644
(file)
--- a/
lib/standard/math.nit
+++ b/
lib/standard/math.nit
@@
-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