17 lines
355 B
Python
17 lines
355 B
Python
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)
|