can you select random elements from a list into another list code example
Example 1: how to get a random element from an array in python
import random
names=['Mark', 'Sam', 'Henry']
random_array_item=random.choice(names)
print(random_array_item)
for j in range(names):
print(random.choice(names))
Example 2: choose random index from list python
import random
ahahfunny = ['ahah ', 'copy-', 'paste ', 'stack overflow',' go ', 'brrr']
print(ahahfunny[random.randint(0, 5)]
print(random.choice(ahahfunny))