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

# random::seed

Returns the current random seed, without incrementing it.

```
uint random::seed()
```

## Return Value

The current random seed as a 32-bit unsigned integer.

## Discussion

This function retrieves the current state of the random number generator’s seed
without modifying it, allowing you to inspect or save the seed value for later use.

> Visual: ![Graph](random__seed)

---

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)