---
title: randomSeed
framework: realitykit
role: symbol
role_heading: Instance Property
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: realitykit/computegraphcomponent/randomseed
---

# randomSeed

An optional fixed random seed for the simulation.

## Declaration

```swift
var randomSeed: UInt32? { get set }
```

## Discussion

Discussion When nil, a random seed is chosen each time the simulation is (re)initialized.
