Implemented SRand function for CAPTCHA