<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/random/integer",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "random::integer"
  },
  "title" : "random::integer"
}
-->

# random::integer

Generates a pseudo-random 32-bit unsigned integer.

```
uint random::integer()
```

## Return Value

A pseudo-random 32-bit unsigned integer.

## Discussion

This function generates a random integer covering the full range of 32-bit unsigned
values and increments the internal random seed for subsequent calls.

> Visual: ![Graph](random__integer)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)