replaced random.randint with random.uniform for smoother velocity randomization