Skip to content

Commit 3d3acde

Browse files
committed
r.randi is undefined, should be r.rand
1 parent bf6de67 commit 3d3acde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapters/math/generating-predictable-random-numbers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ Avoid the temptation to modulus the output of this generator. If you need an int
6262
r.randn() % 2
6363
{% endhighlight %}
6464

65-
because you will most definitely not get random digits. Use `r.randi(2)` instead.
65+
because you will most definitely not get random digits. Use `r.rand(2)` instead.

0 commit comments

Comments
 (0)