11 lines
256 B
Python
11 lines
256 B
Python
from random import *
|
|
random() [0,1) # float
|
|
unifom(2.6, 7.1) [2.6,7.1] # float
|
|
|
|
randint(1, 10) [1,10] # int
|
|
randrange(1, 10) [1,10) # int
|
|
randrange(1, 10, 2) [1,10) # int %2==1
|
|
|
|
choice(list) # from list rand
|
|
choice(list, 2) # from list two
|