I have small question:
How can I create a random string from 'a' to 'z'?
Jump to Post
Create 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 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.