Added verifying in random method