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

Convert Call stack to readable format in D365FO X++

//Input --container _xppCallStack = xSession::xppCallStack();  Public static str POL_formatXppCallStack(container _xppCallStack, int _skipFr...