vendredi 18 décembre 2015

Generate random numbers distributed as a function

I am trying to study for my final in a Python class and I'm stumped on one of the questions. I am supposed to write a program that generates random integers that are distributed as a sine function. As in the histogram of results will follow a sine curve. Any help that could point me in the right direction would be greatly appreciated.




Aucun commentaire:

Enregistrer un commentaire