cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Random Character Generation
Random Character Generation
Feb 18, 2015 at 1:11pm UTC
closed account (
jiEA7k9E
)
aba
Last edited on
Feb 19, 2015 at 2:19am UTC
Feb 18, 2015 at 1:22pm UTC
LB
(13399)
http://www.cplusplus.com/reference/cctype/isupper/
http://www.cplusplus.com/reference/cctype/islower/
Feb 18, 2015 at 1:24pm UTC
mutexe
(2372)
http://www.cplusplus.com/doc/tutorial/files/
Feb 18, 2015 at 4:29pm UTC
closed account (
jiEA7k9E
)
only want to how to replace character by random characters.
Feb 18, 2015 at 6:57pm UTC
LB
(13399)
http://www.cplusplus.com/reference/random/
http://en.cppreference.com/w/cpp/header/random
Note: do not use the
rand
function
Last edited on
Feb 18, 2015 at 6:57pm UTC
Feb 18, 2015 at 7:47pm UTC
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?
Feb 18, 2015 at 9:28pm UTC
LB
(13399)
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.
Feb 19, 2015 at 12:33pm UTC
MikeyBoy
(5631)
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.
Feb 20, 2015 at 12:46am UTC
heepoo
(120)
you can use boost.random
just read it's documentation and use it
Topic archived. No new replies allowed.