We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1108119 commit 29e7ecaCopy full SHA for 29e7eca
vlib/rand/rand.v
@@ -585,6 +585,11 @@ pub fn u64_in_range(min u64, max u64) !u64 {
585
return default_rng.u64_in_range(min, max)
586
}
587
588
+// i8 returns a uniformly distributed pseudorandom 8-bit signed (possibly negative) `i8`.
589
+pub fn i8() i8 {
590
+ return default_rng.i8()
591
+}
592
+
593
// i16 returns a uniformly distributed pseudorandom 16-bit signed (possibly negative) `i16`.
594
pub fn i16() i16 {
595
return default_rng.i16()
0 commit comments