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

Dynamically setting entire Form security access through Extension in D365FO

/// <summary> /// To check if user can get access to the Parameter form /// </summary> class SAN_ParamFormsAccessCtrl {     prot...