Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Access Vector Objects At Random

Author
Message
kklouzal
9
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 28th Oct 2012 20:52
Can someone give me an example on how to access an object from a vector at random.

say there are 10 objects in the vector, within the loop i want to access those objects at random instead of iterating through from 1 to 10.
kklouzal
9
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 29th Oct 2012 00:23
I figured it out!



theres the code for anyone else who may need help

Login to post a reply

Server time is: 2018-11-18 11:49:54
Your offset time is: 2018-11-18 11:49:54