Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python random real

import random
# 0 <= x <= 1
x = random.random()
# 1.2 <= x <= 2
x = random.uniform(1.2, 2)
 
PREVIOUS NEXT
Tagged: #python #random #real
ADD COMMENT
Topic
Name
8+4 =