web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :

Random Number Generator

 Profile Picture Posted by Community member
This is a component designed to generate random number every time the component is reset.
 
 
Let's take a look at the component.
 
Input Properties:
1) Length : Number - The length of random number as output.
2) Show OTP : Boolean - Show/Hides the OTP - By default this is false.
3) TextColor : Color - If the "Show OTP" is set to true, then the color of text.
 
Output Properties:
1) Result : Returns the generated random number.
 
Component -> OnReset
Expression: Set(RandomNumber,Value(Text(Mod(Rand()*Power(100,'OTP Generator'.Length),Power(10,'OTP Generator'.Length)-1),"[$-en-US]#0")))
 
Explanation: The above expression generates a number based on "Length" parameter and stores it in a variable which is then returned through the "Result" Output Property. 'OTP Generator' is the name of the component.

Categories:

Comments

  • MeKl Profile Picture MeKl
    Posted at
    Random Number Generator

    Thanks for this.

    Can you generate multi random items from a list? 

  • LR4 Profile Picture LR4
    Posted at
    Random Number Generator

    Hi, can you advise if this RNG is independently verified & certified to be random. I'm trying to find out which Microsoft RNG methods are certified as random and 3rd party tested in order to decide which to use for a prize draw solution in our new system we are building

    Thanks

  • Community Power Platform Member Profile Picture Community Power Pla...
    Posted at
    Random Number Generator

    Hi

    After loading the component and OnSelect button I am getting the below error

    Invocation of Unknown or Unsupportive function for the below line

    Office365Outlook.SendEmailV2(TextInput1_1.Text,"OTP for Authentication","The OTP is "&RandomNumberGenerated);

     

    Regards

    Sudhakar