| thundemanx (2) | |
|
Now ,Random()[or rand()] is ,in my knowledge generally and only used to get random integers.. Suppose, I want to generate a random 3-character string that may contain a-z OR A-Z How to do this ? Besides using random , is there any other way to do this ? | |
|
|
|
| Catfish3 (117) | |
|
If your compiler supports C++11 well enough... http://cplusplus.com/reference/random/ http://cplusplus.com/reference/algorithm/generate/ | |
|
|
|
| EssGeEich (683) | |||
If it doesn't, get a random number between 'a' and 'z' or 'A' and 'Z'.
| |||
|
|
|||
| tntxtnt (61) | |||
| |||
|
|
|||