new patching code
add randint
extra