---
# System prepended metadata

title: Random library

---

# Random library

## `import random`


### Some useful function calls

`random.randint(a,b)`
Returns a random combination of integers - you can set how many integers you want this function call to receive
The randomised set of numbers will be between a and b
You can set this using:
`random.randrange(*where you want to start*, *where you want to stop*)`

`random.randbytes(n)`
Generates n random bytes