Files
OpenHands/evaluation/regression/cases/python-cli-help/start/commands/scramble.py
zch-cc cfefc47439 Move regression tests to evaluation/ (#86)
* Move regression tests to evaluation/

* use pythnon instead of docker in the script

* add model para

* change python to python3

* bug fix
2024-03-22 23:26:37 +08:00

6 lines
113 B
Python

import random
def scramble_string(s):
s_list = list(s)
random.shuffle(s_list)
return ''.join(s_list)