I'd like to ask if anyone knows how to randomize character variables, and if it is possible to define the possible characters it can use in the randomizing process. Any info would be excellent ^^ T#4NK$.
Geek-Master
Recommended Answers
Jump to PostYou can load your characters into a vector and use something like:
random_shuffle(cV.rbegin(), cV.rend());
Check out the code snippet on vectors to get an idea how to create and display the vector.
All 4 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Geek-Master
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Geek-Master
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.