delete var $KCODE
do not use choice() or sample(), use rand()