python random decimal code example Example: random float python import random print(random.random(1, 10)) # any int or float