mercredi 30 décembre 2020

How to get random item from a list in python3 without any module

I am using Python 3.9 & have a list list1 = ['a', 'b', 'c', 'd'] I want to get a random item from the list without using any module like there is a module random in Python and a function random.choice(list1) I can use this but is there another way to get a random item from a list in Python without using any module?




Aucun commentaire:

Enregistrer un commentaire