jul1278 / SimpleComponents

component-based 2D game engine in SDL
0 stars 1 forks source link

random function #54

Open TGIshib opened 8 years ago

TGIshib commented 8 years ago

Returns a random int from the [left,right] interval. Result could be equal to left, right, or (left + i * step) <= right.

TGIshib commented 8 years ago

Sure. As well it would be good to use srand(time(NULL)) in the main function.