Hi guys, new here,
We’re porting our Marmalade codebase to cocos2d-x
It is a lot of fun but we have so many questions that most of the time we can answer reading guides, docs, code but I’m stuck with this one.
Does cocos2d::RandomHelper::random_real include or exclude the max value?
float f = cocos2d::RandomHelper::random_real<float>(0.f, 1.f);
//can f be equal to 1.f here?
The docs say this
Returns a random value between
min
andmax
.
For me between is excluding but not sure!
Thank you