battle_game.randomRange rngValue 0 10;
unit.getHealth newValue;
add newValue rngValue;
unit.Stats.setHealth newValue;
unit.setHealth newValue;
this part need be repeated but part `Health` replaced by `TimeUnits`. Some stats live only in `unit.Stats.*` and do not need all operations to change.
To final all stats that are editable look to log with verbose logging enabled, it will dump all function that scripts can use (aka `unit.Stats.setHealth` and other similar).