select random element from matrix

41

select random element from matrix -

import random

foo = ['a', 'b', 'c', 'd', 'e']
print(random.choice(foo))

Comments

Submit
0 Comments