vendredi 3 novembre 2017

random.ints where 60% values == 0

I create random stream

Stream<Integer> boxed = random.ints(0, 100000000).boxed();

But I need 60% all nubers == 0 and another - random values. How can I do it?




Aucun commentaire:

Enregistrer un commentaire