How to generate a random string ...
Gary Willoughby via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Mar 16 15:19:52 PDT 2015
On Monday, 16 March 2015 at 13:33:55 UTC, Robert burner Schadek
wrote:
> ... from all Unicode characters in an idiomatic D way?
> (std.interal.unicode_*)
>
> ```
> T genUnicodeString(T)(size_t minChars, size_t maxChars)
> if(isSomeString!T) {
> ...
> }
> ```
I guess it depends on the encoding?
Some references:
http://stackoverflow.com/questions/23853489/generate-a-random-unicode-string
http://www.bonf.net/2009/01/14/generating-random-unicode-strings-in-c/
More information about the Digitalmars-d-learn
mailing list