Friday, March 21, 2014

Random Number generator in AX

// Random Number generator in AX

static void Random(Args _args)
{
    Random  Random = new Random();
    int RandomNo,Randomwithmod;
    ;
    RandomNo = Random.nextInt();
    Randomwithmod = Random.nextInt() mod 1000;
    info(strFmt("%1  %2",RandomNo,Randomwithmod));
}

No comments:

Post a Comment

Disabling the flight in D365FO (CHD - Tier 1)

 INSERT INTO dbo.SYSFLIGHTING(FLIGHTNAME, ENABLED)  VALUES ('<FlightObjectName>_KillSwitch', 1)  or  INSERT INTO dbo.SYSFLIGHT...