I have small question:
How can I create a random string from 'a' to 'z'?
thank you!
donaldunca
0
Light Poster
Recommended Answers
Jump to PostCreate a string containing all the letters you want to use. Seed and use rand() to access elements (using the % operator to force the numbers within the string's range). Strcat in a loop. Pseudo-code.
my_letters = "abcdefghijklmnopqrstuvwxyz" /* allowable letters for your random string */ my_random_string …
All 3 Replies
twomers
408
Posting Virtuoso
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
donaldunca
0
Light Poster
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.