activities
latest
false
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.
UiPath logo, featuring letters U and I in white

Activités de workflow

Dernière mise à jour 26 mars 2026

RandomNumber

Génère un entier aléatoire d'une longueur donnée.

Définition

Espace de noms : UiPath.Testing.API

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

Surcharges

RandomNumber()Génère un entier aléatoire.
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()

Génère un entier aléatoire.

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 : la valeur minimale (par défaut long.MinValue).

max Int64 : la valeur maximale (par défaut 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 : la valeur minimale (par défaut long.MinValue).

max Int64 : la valeur maximale (par défaut long.MaxValue).

decimals Int32 : le nombre de décimales (par défaut 0).

RetournerValeur

Nombre aléatoire généré.

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour