UiPath Documentation
activities
latest
false
Workflow activities

RandomNumber

Generates a random integer with a given length.

Generates a random integer with a given length.

Definition​

Namespace: UiPath.Testing.API

Assembly: UiPath.Testing.Activities.Api (in UiPath.Testing.Activities.Api.dll)

Overloads​

RandomNumber()Generates a random integer.
RandomNumber(Int64, Int64)Generates a random integer, considering a minimum and maximum value.
RandomNumber(Int64, Int64, Int32)Generates a random integer, considering a minimum and maximum value, as well as a number of decimals.

RandomNumber()​

Generates a random integer.

decimal RandomNumber()
decimal RandomNumber()

RandomNumber(Int64, Int64)​

Generates a random integer, considering a minimum and maximum value.

decimal RandomNumber(
    long min,
    long max
)
decimal RandomNumber(
    long min,
    long max
)

min Int64 : The minimum value (default long.MinValue).

max Int64 : The maximum value (default long.MaxValue).

RandomNumber(Int64, Int64, Int32)​

Generates a random integer, considering a minimum and maximum value, as well as a number of decimals.

decimal RandomNumber(
    long min,
    long max,
    int decimals
)
decimal RandomNumber(
    long min,
    long max,
    int decimals
)

min Int64 : The minimum value (default long.MinValue).

max Int64 : The maximum value (default long.MaxValue).

decimals Int32 : The number of decimals (default 0).

Return value​

Generated random number.

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated