How to generate random char

How to generate random char

All characters have their own codes, for example ASCII codes of uppercase latin characters have codes from 65 to 90, respectively \’A\’ = 65 and \’Z\’ = 90.

Function CHAR returns the character for passed integer value –

Using the method of generating random numbers described in the MySQL documentation, you can get the generator of random characters for codes from 65 to 90 –

Leave a Reply

Your email address will not be published. Required fields are marked *