`RANDOM`

Data 360 Query Guide, mirrored from developer.salesforce.com: **Applies to:** ✅ Data 360 SQL ✅ Tableau Hyper API

markdownreferencev1QRHZ-WS2Cguide: data-cloud-query-guidestage: referencetrust: officialsource: developer.salesforce.comservice: data360interface: sql`RANDOM`Data 360Data CloudData 360 Query Guide

Created 23 Oct 2026 · Modified 23 Oct 2026 · 1 version

Mirror of <https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/random.html> (Salesforce, Data 360 Query Guide), read 2026-10-23. Salesforce's own page is the authority; this copy exists because that site refuses non-browser readers.

RANDOM

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Returns a pseudorandom value in the range 0.0 (inclusive) to 1.0 (exclusive).

Returns a pseudorandom value in the range 0.0 <= x < 1.0 as a double precision value.

  • The characteristics of the returned values depend on the system implementation.
  • random() isn’t suitable for cryptographic applications.

Return a pseudorandom value.

Returns a value such as 0.6817331.

Read this document as markdown — the same bytes an agent receives.