Generate boolean random numbers with 30% probability
There is a random boolean generator in java random.nextBoolean()
But how can I generate boolean random values with 30% probability of true
Is there any such inbuilt function or one can make such a function out of the
existing function?
Aucun commentaire:
Enregistrer un commentaire