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::Int::rand
author
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 27 Feb 2014 20:32:42 +0000
(12:32 -0800)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 27 Feb 2014 20:32:42 +0000
(12:32 -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
..
d122c2e
100644
(file)
--- a/
lib/standard/math.nit
+++ b/
lib/standard/math.nit
@@
-21,6
+21,7
@@
in "C header" `{
`}
redef class Int
+ # Returns a random `Int` in `[0 .. self[`.
fun rand: Int is extern "kernel_Int_Int_rand_0"
fun bin_and(i: Int): Int is extern "kernel_Int_Int_binand_0"
fun bin_or(i: Int): Int is extern "kernel_Int_Int_binor_0"