cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
randomizing elements in an array
randomizing elements in an array
Nov 16, 2010 at 12:28am UTC
melissak0421
(16)
how would I go about randomizing both objects and integers in an array of any size?
Nov 16, 2010 at 12:48am UTC
Athar
(4466)
random_shuffle(array.begin(),array.end());
See
http://www.cplusplus.com/reference/algorithm/random_shuffle/
Topic archived. No new replies allowed.