Python acak nyata
import random
# 0 <= x <= 1
x = random.random()
# 1.2 <= x <= 2
x = random.uniform(1.2, 2)
just-saved-you-a-stackoverflow-visit
import random
# 0 <= x <= 1
x = random.random()
# 1.2 <= x <= 2
x = random.uniform(1.2, 2)
from random import randint
print(randint(3, 9))