public static HITResult Rand(HITThread thread)
{
var dest = thread.ReadByte();
var low = thread.ReadByte();
var high = thread.ReadByte();
var result = (new Random()).Next(high+1-low)+low;
thread.WriteVar(dest, result);
thread.SetFlags(result);
return HITResult.CONTINUE;
}