Simple question but difficult to me. I want to generate uniformly distributed random numbers between 0 and 1
, how can I do it? In matlab I am using rand, in C++ rand()
returns integers.
Since C++11, use std::uniform_real_distribution
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With