samedi 11 juillet 2020

Random Number Generation within a given range using a given function only [closed]

Given a method that returns a random number from 0-9 with equal probability( let say foo()). Write a method that uses this method and returns number between 0-100 with equal probability. You cannot use other methods, Take the help of this method only let say foo().




Aucun commentaire:

Enregistrer un commentaire