Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Seeding a random number

$
0
0

Maybe it's easier if you use ofSeedRandom. As an example:

ofApp.h

int xCord = 0;

setup()

ofSeedRandom(); // or ofSeedRandom(int val);
xCord = ofRandom(500) + 30;

Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>