Added randomize feature.