This question already has an answer here:
- generate random double numbers in c++ 6 answers
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