Activities
latest
false
Banner background image
Workflow Activities
Last updated 29. Apr. 2024

RandomNumber

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 minmum and maximum value.
RandomNumber(Int64, Int64, Int32)Generates a random integer, considering a minmum 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 minmum 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 minmum 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?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.