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