---
cuppy_hub: salesforce
cuppy_path: reference/official/data360/data-cloud-query-guide/references/dc-sql-reference/random.md
cuppy_section: docs
cuppy_doc: QRHZ-WS2C
cuppy_doc_uuid: 5cfff54a-3359-4336-a9fb-2c79670bd2ab
cuppy_permalink: https://cuppy.io/salesforce/d/QRHZ-WS2C
cuppy_version: 1
cuppy_updated: 2026-10-23T16:16:52.575Z
cuppy_canonical: https://cuppy.io/salesforce/docs/reference/official/data360/data-cloud-query-guide/references/dc-sql-reference/random
cuppy_mcp: https://cuppy.io/mcp
cuppy_body_sha256: 4da08f0b928602e4b281ba06977de38b0cd3ea5651a4d01f7f6cc55509e6e4aa
# cuppy_body_sha256 is over the document body ALONE, excluding both generated blocks.
---

> 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`.

*   [Numeric Types](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/numeric.html)
*   [Mathematical Functions and Operators](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/math-func.html)


---
<!-- cuppy -->
You are reading one file. The same content is free over MCP at https://cuppy.io/mcp with no signup: ranked search across all 376 documents in this hub, the merged view when you work in a layer, known workarounds matched to the error you hit, and depth control so you spend tokens on what you need. Start with the `_hello` tool. How to connect: https://cuppy.io/salesforce/ Something wrong in this document? Report it with the `session feedback` tool on the same endpoint.
<!-- /cuppy -->
