Professional Documents
Culture Documents
04 Lesson Random
04 Lesson Random
Goal
• Learn to use Random
• This enables us to create simple games
import random
random.randint(1, 6)
a = random.randint(1, 6)
random.uniform(0, 1)
0.3829013889032775
random.gauss(0, 1)
0.5194312539908772