tested randint first to ensure it is working