I’ve read the manual for pseudo-randomness in Python, and to my knowledge, you can only generate numbers up to a given maximum value, i.e. 0-1, 0-30, 0-1000, etc. I want to:
- a) Generate a number between two ints, i.e. 5-55, and
- b) Only include multiples of 5 (or those ending in 5 or 0, if that’s easier)
I’ve looked around, and I can’t find anywhere that explains this.
Create an integer random between e.g.
1-11and multiply it by5. Simple math.produces e.g.