The documentation for generating pseudo-random numbers in Python is at https://docs.python.org/3/library/random.html.
import random as rnd # random_int = rnd.randint(1, 10) # from 1 to 10 print(random_int)
2
Get a random float between 0 and 1.
rnd.triangular()
0.7249067478308395