I'm trying to make a particle system which uses mainly floating points for position, velocity etc. I need a random number generator to generate random floats for some of those values.
I've tried random()
, but its data types are long
, so the floats are rounded to 0. This is Arduino (which is on C++11), so it's a bit different from average C++, as in you cannot use <iostream>
, <random>
etc.
Aucun commentaire:
Enregistrer un commentaire