<p>How do I generate a random number between <code>0</code> and <code>n</code>?</p>

Well, I figured it out. Apparently there is a builtin (?) function called rand:
```
```
rand(n + 1)
```
```
If someone answers with a more detailed answer, I'll mark that as the correct answer.