How to generate a random string ...
Robert burner Schadek via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Mar 16 15:52:13 PDT 2015
On Monday, 16 March 2015 at 22:19:52 UTC, Gary Willoughby wrote:
> I guess it depends on the encoding?
No the character itself are encoding independent.
>
> Some references:
> http://stackoverflow.com/questions/23853489/generate-a-random-unicode-string
This will not work as the caller has to specify the code range. I
want to specify the string length and the random use is not even
uniform (see channel 9 link)
http://channel9.msdn.com/Events/GoingNative/2013/rand-Considered-Harmful
> http://www.bonf.net/2009/01/14/generating-random-unicode-strings-in-c/
I'm not use how that is going to give me the 113,021 unicode
defined characters let alone in a uniform way.
More information about the Digitalmars-d-learn
mailing list