random Flashcards

1
Q

Name of random module:

A

random

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

extracting a random value

A

random.random()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

random choice

A

random.choice(list or tuple or whatever)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly