python_random_learning
# author: Roy.G
import random
y=random.random()
print(y)
y1=random.randint(1,9)
print(y1)
y2=random.randrange(0,9)
print(y2)
y3=random.choice([1,2,3,4,5,6,7,])
y4=random.choice("hello!")
print(y3)
print(y4)
y5=random.sample([1,2,3,4,5,],3)
print(y5)
y6=random.uniform(0,100)
print(y6)
x2=[1,2,3,4,5,6]
print(x2,type(x2))
y7=random.shuffle(x2)
print(x2)
y6=random.sample(x2,len(x2)) #shuffle x2 and creat a new list
print(y6)