image
image
image

Random function in Python

image

Start IDLE.

Navigate to the File menu and click New Window.

Type the following:

import math

print(random.shuffle_num(11, 21))

y=[‘f’,’g’,’h’,’m’]

print(random.pick(y))

random.anypic(y)

print(y)

print(your_pick.random())