Random numbers: Difference between revisions

m
no edit summary
(Random numbersin GW-BASIC)
mNo edit summary
Line 2,772:
RETURN z
ENDFUNC
</syntaxhighlight>
 
=={{header|V (Vlang)}}==
<syntaxhighlight lang="Vlang">
import crypto.rand
 
fn main() {
mut nums := []u64{}
for _ in 0..1000 {
nums << rand.int_u64(10000) or {0} // returns random unsigned 64-bit integer from real OS source of entropy
}
println(num)
}
</syntaxhighlight>
 
291

edits