Too complicated code for generating a random string?

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Sat Jun 18 03:12:04 UTC 2022


On Friday, 17 June 2022 at 20:17:31 UTC, Ali Çehreli wrote:
> On 6/17/22 10:16, greenbyte wrote:
> > On Saturday, 23 February 2013 at 01:07:23 UTC, bearophile
> wrote:
>
> Good old bearophile! :) He has been lured by other programming 
> languages (Rust?) long time ago.
>
> Ali

that was my same reaction, hey bearophile back and then realized 
an old thread is resurrected.

import std;
void main()
{
    auto rnd = MinstdRand0(42);u, '''
    writeln(letters.array.randomCover(rnd).front);
}


More information about the Digitalmars-d mailing list