mercredi 30 décembre 2015

Generate pseudo random float number between 0.0 (inclusive) and 1.0 (exclusive) in C++/Qt5

I want to generate a pseudo random number between 0.0f (inclusive) and 1.0f (exclusive) in C++ using Qt5.

How can I do this in the recommended/Qt way?




Aucun commentaire:

Enregistrer un commentaire