samedi 6 mars 2021

How to generate pseudo random string based on percentage probability?

I am new to python programming and currently working on python random module to generate pseudo random string based on probability.

I need to get random string based on probability that there should be 50% probability to get string "hello".

I have tried online to find solutions but not any luck and wasted much of time.

Please let me know if anyone has idea regarding my problem.




Aucun commentaire:

Enregistrer un commentaire