Added log to batch_randomize