mercredi 23 mars 2022

How to randomly select an index in an array in Python without using any libraries

I need to generate a random index in an array without using any library such as random. For example I have an array of size=30, I need to generate an index that is within index 0-29 randomly. Perform this using hard code only and without any library.




Aucun commentaire:

Enregistrer un commentaire