jeudi 2 avril 2020

Generate random number without range for a given argument for the same length in python be it in numeric or alphanumeric

Generate random number without range for a given parameter for the same length in python be it in numeric or alphanumeric

For example :

I pass a numeric value (123456) to my function, then the function should return a random integer number say 876529 for the same length and the characters in the value should not be repeated also the random number should not be repeatable when the function is called multiple times.

the same with alphanumeric: for example, if I pass A2ED8I then the function should return me some alphanumeric value for the same length.




Aucun commentaire:

Enregistrer un commentaire