---
title: MPSMatrixRandom
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsmatrixrandom
---

# MPSMatrixRandom

## Declaration

```swift
class MPSMatrixRandom
```

## Topics

### Instance Properties

- [batchSize](metalperformanceshaders/mpsmatrixrandom/batchsize.md)
- [batchStart](metalperformanceshaders/mpsmatrixrandom/batchstart.md)
- [destinationDataType](metalperformanceshaders/mpsmatrixrandom/destinationdatatype.md)
- [distributionType](metalperformanceshaders/mpsmatrixrandom/distributiontype.md)

### Instance Methods

- [encode(commandBuffer:destinationMatrix:)](metalperformanceshaders/mpsmatrixrandom/encode(commandbuffer:destinationmatrix:).md)
- [encode(commandBuffer:destinationVector:)](metalperformanceshaders/mpsmatrixrandom/encode(commandbuffer:destinationvector:).md)

## Relationships

### Inherits From

- [MPSKernel](metalperformanceshaders/mpskernel.md)

### Inherited By

- [MPSMatrixRandomMTGP32](metalperformanceshaders/mpsmatrixrandommtgp32.md)
- [MPSMatrixRandomPhilox](metalperformanceshaders/mpsmatrixrandomphilox.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
