---
title: "random::seed"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/random/seed
---

# random::seed

Returns the current random seed, without incrementing it.

## Declaration

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

## Return Value

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

## Discussion

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. note:
