A quick guide to Python’s random number generator
If you are doing applied math and want to run a computer simulation, then chances are you will need random numbers. I write most of my simulations in Python, and luckily Python has a great random number library. Let’s see how to use it. The first step is to import the library:
1 2 |
import random random.seed() |
Notice that […]