www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [your code here]

Random alphanumeric string
```d
string randomAlphanumericString(int length)
{
     import std.array : array;
     import std.ascii : letters, digits;
     import std.random : choice, Random, unpredictableSeed;
     import std.range : generate, take;
     import std.conv : to;

     auto rnd = Random(unpredictableSeed);
     auto symbols = array(letters ~ digits);

     return generate!({ return symbols.choice(rnd); 
}).take(length).to!string;
}
```
Jun 20 2022