Even better randomness
This commit is contained in:
parent
54995b9ee9
commit
da3708bf4e
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ Along with [its other uses](/block/), the `block` statement can be used to creat
|
|||
``` nimrod
|
||||
import strutils, math
|
||||
|
||||
randomize()
|
||||
let answer = random(10) + 1
|
||||
while true:
|
||||
echo "I have a number from 1 to 10, what is it? "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue