help in rand Functions