Introduction

In Power Automate, in a few of the scenarios we need to generate a random number of examples to prepare a unique name with text and a combination of Unique numbers so as to provide quick test data then the Rand function is used.
Step 1
Login to the required Power Automate environment using URL make.powerautomate.com by providing the user name and password and click on Create on the left-hand side as shown in the below figure and after chose the Instant Cloud Flow

Step 2
After step 1, click on  the trigger as Manually trigger a flow, and Give the Flow Name Then click on Create as shown in the figure below.

Step 3
After step 2, click on + New Step and Take the Compose Action as shown in the below figure.

Step 4
After step 3, rename compose title with rand Function and click on Inputs and select 2nd tab Expression and type rand and observe it expect 2 parameters first 1 minValue with integer type, 2nd is maxValue of integer type we can pass as shown in the below figure.

Rand have the following syntax
rand(minValue: integer,maxValue : integer)
So provide the value as an example
rand (1,1999)

Step 5
After Step 4, Save and Test flow after clicking on Run Flow and Done and click on OK shown in the below figure.

For any Help or Queries Contact us on info@crmonce.com or +918096556344