activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

工作流活动

上次更新日期 2026年3月6日

生成随机数字

UiPath.Testing.Activites.Test.Data.GenerateRandomNumber

描述

生成具有给定长度的随机整数。

项目兼容性

Windows - 旧版 | Windows | 跨平台

Windows - 旧版配置

属性面板

常见

  • “显示名称”- 活动的显示名称。

输入

  • Decimal Places - Specifies the maximum number of decimals that can be used for the Number field.
  • Max - Maximum number range.

最大数字范围不存在,这意味着如果将“最大值”设置为10 ,则实际返回的最大值将为9 。例如,如果您希望10作为返回的最大值,请将最大值设置为10.1

  • 最小值 - 最小数字范围。

其他

  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。

输出

  • Output - Decimal. Charset: Unicode.

Windows、跨平台配置

  • Max - Maximum number range.

最大数字范围不存在,这意味着如果将“最大值”设置为10 ,则实际返回的最大值将为9 。例如,如果您希望10作为返回的最大值,请将最大值设置为10.1

  • 最小值 - 最小数字范围。
  • Output - Decimal. Charset: Unicode.
高级选项

输入

  • Decimal Places - Specifies the maximum number of decimals that can be used for the Number field.
  • 描述
  • 项目兼容性
  • Windows - 旧版配置
  • Windows、跨平台配置

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新