Unable to generate a random number

Error code 14
Error constant GENERATE_RANDOM
 Probable cause