<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSCreateRandomGenerator(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@BNNSCreateRandomGenerator"
  },
  "title" : "BNNSCreateRandomGenerator(_:_:)"
}
-->

# BNNSCreateRandomGenerator(_:_:)

Returns a new random number generator using an internally generated random seed.

```
func BNNSCreateRandomGenerator(_ method: BNNSRandomGeneratorMethod, _ filter_params: UnsafePointer<BNNSFilterParameters>?) -> BNNSRandomGenerator?
```

## Parameters

`method`

The method that the generator uses to generate random numbers.

`filter_params`

The filter runtime parameters.

## Return Value

A pointer to the random generator.

## Discussion

---

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)