---
title: "allocate(randomNormalUsing:mean:standardDeviation:shape:batchSize:)"
framework: accelerate
role: symbol
role_heading: Type Method
path: "accelerate/bnnsndarraydescriptor/allocate(randomnormalusing:mean:standarddeviation:shape:batchsize:)"
---

# allocate(randomNormalUsing:mean:standardDeviation:shape:batchSize:)

## Declaration

```swift
static func allocate<Scalar>(randomNormalUsing: BNNS.RandomGenerator, mean: Scalar, standardDeviation: Scalar, shape: BNNS.Shape, batchSize: Int = 1) -> BNNSNDArrayDescriptor? where Scalar : BNNSScalar, Scalar : BinaryFloatingPoint
```
