activities
latest
false
UiPath logo, featuring letters U and I in white

Workflow Activities

Last updated Aug 7, 2025

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.

  • RandomNumber
  • Definition
  • Overloads
  • RandomNumber()
  • RandomNumber(Int64, Int64)
  • RandomNumber(Int64, Int64, Int32)
  • Return value

Was this page helpful?

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