External Transition Function
function ext import DESLib.RandomLib; input st s; input Real e; input Integer bag; input Real T; input Real p1; input Real p2; input Real p3; input Real p4; output st sout; end ext;