Random Number Action in Desktop flow using Microsoft Power Automate

Microsoft Power Automate is a software by Microsoft for automation of recurring tasks. It is part of the Microsoft Power Platform line of products together with products such as Power Apps and Power BI. For more details click here.

Desktop flows are the existing robotic process automation (RPA) capabilities in Power Automate and enable to automate all repetitive desktop processes. For more details click here.

Random Number Action generates a random number or a list of random numbers that fall between a minimum and maximum value.

Reading this article, you can learn how to use Generate Random Number Action in Desktop flow using Microsoft Power Automate.

The following important tools are required for developing Microsoft Power Automate,

  1. Windows 10/11 (Recommended)
  2. Power Automate Desktop - Download the Power Automate installer

Now we can discuss step-by-step App development.

Step 1

Open Microsoft Power Automate -> New Flow

Next, give the Flow name as PADRandom, Click the Create button,

After that, we are able to see the Desktop flow,

Step 2

For testing Random Number action,

First, add the GenerateRandom Number action,

Set the Minimum Value parameter as 0, Maximum Value parameter as 100 and Variables produced parameter as RandomNumber and click Save,

For displaying result, add the Display message action

Set the Message box Title property as Random Number, Message to display property as "The Random Number is %RandomNumber%"

Click Save Button

Now, save the PADRandom Desktop Flow,

Step 3

Now we can run your PADRandom Desktop Flow in Microsoft Power Automate, and the output of the PADRandom is,

Summary

Now you have successfully tested GenerateRandom Number Action in Desktop flow - PADRandomin Microsoft Power Automate.


Similar Articles