We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, what's the fastest way to generate random characters (letters but, additionally, also special characters) to be used as text? Thanks
@Xeronimo74 -- Probably generate a random int, then convert it to a character with "char()" -- but you should benchmark it.
Not sure precisely what you mean by "special characters", but 'char' is a 16bit data type that encodes Unicode, so you'll want to generate random numbers in the range(s) of characters that you want.
Ok, that works, thanks
Answers
@Xeronimo74 -- Probably generate a random int, then convert it to a character with "char()" -- but you should benchmark it.
Not sure precisely what you mean by "special characters", but 'char' is a 16bit data type that encodes Unicode, so you'll want to generate random numbers in the range(s) of characters that you want.
Ok, that works, thanks