Fix for random.