Generate random number using X++

Generate random number using X++:
Varian 1:
        RandomGenerate            randomGenerate;
        randomGenerate = RandomGenerate::construct();
        //randomGenerate.parmSeed();
        int                        num = randomGenerate.randomInt(10000000, 99999999);
Varian 2:
        Random Random = new Random();
        int num = Random.nextInt();


 

Search

About

DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics AX.

Authors are allowed to set their own AdSense units and "buy me a coffee" link.
Join us.

Blog Tags