<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSRandomGeneratorMethod",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@EA@BNNSRandomGeneratorMethod"
  },
  "title" : "BNNSRandomGeneratorMethod"
}
-->

# BNNSRandomGeneratorMethod

Constants that describe random number generation methods.

```
struct BNNSRandomGeneratorMethod
```

## Topics

### Raw Values

### Random Number Generation Methods

[`init(_:)`](/documentation/Accelerate/BNNSRandomGeneratorMethod/init(_:))

Creates a new instance with the specified raw value.

[`init(rawValue:)`](/documentation/Accelerate/BNNSRandomGeneratorMethod/init(rawValue:))

Creates a new instance with the specified raw value.

[`rawValue`](/documentation/Accelerate/BNNSRandomGeneratorMethod/rawValue)

The corresponding value of the raw type.

[`BNNSRandomGeneratorMethodAES_CTR`](/documentation/Accelerate/BNNSRandomGeneratorMethodAES_CTR)

A constant that specifes an implementation that’s based on the Advanced Encryption Standard (AES) hash of a counter.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)