mardi 26 mai 2020

Generate random double number in range [0, 1] in C

I have to generate random double number in between 0 and 1. How can i do this using C? I've tried to generate an integer number between 0 and one million and then divide the result by 1M but it didn't work out well.




Aucun commentaire:

Enregistrer un commentaire