---
title: getRNGseed()
framework: ML Compute
role: symbol
role_heading: Type Method
platforms: [iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+, macOS 12.0+, tvOS 15.0+]
path: mlcompute/mlcplatform/getrngseed()
---

# getRNGseed()

Returns the global random number generator seed value.

## Declaration

```swift
class func getRNGseed() -> NSNumber?
```

## Return Value

Return Value

## Discussion

Discussion The default value is nil.
