Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random as rnd
- numeros = [2, 3, 5, 7, 11]
- print(rnd.choice(numeros))
- print(rnd.choice(numeros))
- print(rnd.choice(numeros))
- print(rnd.choice(numeros))
- print(rnd.choice(numeros))
- print('')
- rnd.shuffle(numeros)
- print(numeros)
- print('')
- print(rnd.sample(numeros, 3))
- print(rnd.sample(numeros, 3))
- print(rnd.sample(numeros, 2))
- print(rnd.sample(numeros, 2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement