+ 1

How to make random string generator ?

I need to know the coding ....my school project please help me out ....

19th Jun 2017, 7:14 PM
Vaibhav Gangian
Vaibhav Gangian - avatar
12 Réponses
+ 2
https://code.sololearn.com/cFb8SW3dA93S/?ref=app Just make a string of allowed characters, randomly pick an index and add it to another string.
19th Jun 2017, 9:36 PM
Dennis
Dennis - avatar
+ 1
Yea, you're gonna have to be a little more specific about that. Like what compiler and what error you get :)
19th Jun 2017, 9:50 PM
Dennis
Dennis - avatar
0
In what language?
19th Jun 2017, 7:48 PM
Igor B
Igor B - avatar
0
c++
19th Jun 2017, 8:16 PM
Vaibhav Gangian
Vaibhav Gangian - avatar
0
basically sir I wanted to make CAPTCHA for my project....so I thought to generate these random string in form of questions and ask the user to enter the answer of the specific string .....is this possible
19th Jun 2017, 9:52 PM
Vaibhav Gangian
Vaibhav Gangian - avatar
0
What do you mean? Something like a random string like: LTsrpJA and then the user types that same string or something?
19th Jun 2017, 9:56 PM
Dennis
Dennis - avatar
0
kind of....like typing America in reversed order and asking user to write in correct order and if entered string matches the random string ( reversed America ) then you can proceed .....like this I want to do
19th Jun 2017, 9:59 PM
Vaibhav Gangian
Vaibhav Gangian - avatar
0
if this is possible help me out in making this portion of my project
19th Jun 2017, 10:06 PM
Vaibhav Gangian
Vaibhav Gangian - avatar
0
just make coding and send ...I'll take idea of it
19th Jun 2017, 10:06 PM
Vaibhav Gangian
Vaibhav Gangian - avatar
0
https://code.sololearn.com/c961M3BtGpZh/?ref=app Stuff get a bit more complicated this way. You're gonna have to copy this to codeblocks or something, sololearn input isn't good enough.
19th Jun 2017, 10:10 PM
Dennis
Dennis - avatar
0
okay thanks for helping
20th Jun 2017, 3:14 AM
Vaibhav Gangian
Vaibhav Gangian - avatar
- 1
this code does not run on computer
19th Jun 2017, 9:47 PM
Vaibhav Gangian
Vaibhav Gangian - avatar