mercredi 1 mars 2017

C++ random double number generation [duplicate]

This question already has an answer here:

How do I generate random double in C++? I want to generate numbers between -pi/2 and pi/2. I tried many ways but it doesn't work..I know how to generate a positive int number in a interval but this situation it's giving me a hard time.

Aucun commentaire:

Enregistrer un commentaire