RandomBlob Function The RandomBlob() function returns random bytes. It takes one (1) argument as number of bytes array to generate. The syntax for RandomBlob function is RandomBlob([ Integer ]). SELECT RandomBlob(4) /* returns System.byte[4] */ ; It can be used for password generation or to generate random blob data with ability to specify the size.