blob: 180f200ce98325e6afb87b690a1da2c75dd3d4a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from random import SystemRandom
class RandomInteger:
@classmethod
def between(cls, min, max):
"""
Return integer x in the range: min <= x <= max
:param min: minimum value of the integer
:param max: maximum value of the integer
:return:
"""
return SystemRandom().randrange(min, max + 1)
|