Random Character Generation

closed account (jiEA7k9E)
aba
Last edited on
closed account (jiEA7k9E)
only want to how to replace character by random characters.
Last edited on
closed account (jiEA7k9E)
I have a string and need to replace its every character by a random character,so how to place random function on a string?
Look at the example on this page:
http://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution#Example

All you need to do is loop through the string and replace the characters in it with new characters.
Please don't delete your question once you've got an answer. It makes this thread useless for other people, and damages the value of this forum as a resource for other learners.
you can use boost.random
just read it's documentation and use it
Topic archived. No new replies allowed.