你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

rand()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Returns a random number.

rand()
rand(1000)

Syntax

  • rand() - returns a value of type real with a uniform distribution in the range [0.0, 1.0).
  • rand( N ) - returns a value of type real chosen with a uniform distribution from the set {0.0, 1.0, ..., N - 1}.

Learn more about syntax conventions.