---
title: MPSGraphRandomOpDescriptor
framework: metalperformanceshadersgraph
role: symbol
role_heading: Class
path: metalperformanceshadersgraph/mpsgraphrandomopdescriptor
---

# MPSGraphRandomOpDescriptor

A class that describes the random operation.

## Declaration

```swift
class MPSGraphRandomOpDescriptor
```

## Topics

### Initializers

- [init(distribution:dataType:)](metalperformanceshadersgraph/mpsgraphrandomopdescriptor/init(distribution:datatype:).md)

### Instance Properties

- [dataType](metalperformanceshadersgraph/mpsgraphrandomopdescriptor/datatype.md)
- [distribution](metalperformanceshadersgraph/mpsgraphrandomopdescriptor/distribution.md)
- [max](metalperformanceshadersgraph/mpsgraphrandomopdescriptor/max.md)
- [maxInteger](metalperformanceshadersgraph/mpsgraphrandomopdescriptor/maxinteger.md)
- [mean](metalperformanceshadersgraph/mpsgraphrandomopdescriptor/mean.md)
- [min](metalperformanceshadersgraph/mpsgraphrandomopdescriptor/min.md)
- [minInteger](metalperformanceshadersgraph/mpsgraphrandomopdescriptor/mininteger.md)
- [samplingMethod](metalperformanceshadersgraph/mpsgraphrandomopdescriptor/samplingmethod.md)
- [standardDeviation](metalperformanceshadersgraph/mpsgraphrandomopdescriptor/standarddeviation.md)

## Relationships

### Inherits From

- [MPSGraphObject](metalperformanceshadersgraph/mpsgraphobject.md)

### Conforms To

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

## See Also

### Classes

- [MPSGraph](metalperformanceshadersgraph/mpsgraph.md)
- [MPSGraphCompilationDescriptor](metalperformanceshadersgraph/mpsgraphcompilationdescriptor.md)
- [MPSGraphConvolution2DOpDescriptor](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor.md)
- [MPSGraphConvolution3DOpDescriptor](metalperformanceshadersgraph/mpsgraphconvolution3dopdescriptor.md)
- [MPSGraphCreateSparseOpDescriptor](metalperformanceshadersgraph/mpsgraphcreatesparseopdescriptor.md)
- [MPSGraphDepthwiseConvolution2DOpDescriptor](metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor.md)
- [MPSGraphDepthwiseConvolution3DOpDescriptor](metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor.md)
- [MPSGraphDevice](metalperformanceshadersgraph/mpsgraphdevice.md)
- [MPSGraphExecutable](metalperformanceshadersgraph/mpsgraphexecutable.md)
- [MPSGraphExecutableExecutionDescriptor](metalperformanceshadersgraph/mpsgraphexecutableexecutiondescriptor.md)
- [MPSGraphExecutableSerializationDescriptor](metalperformanceshadersgraph/mpsgraphexecutableserializationdescriptor.md)
- [MPSGraphExecutionDescriptor](metalperformanceshadersgraph/mpsgraphexecutiondescriptor.md)
- [MPSGraphFFTDescriptor](metalperformanceshadersgraph/mpsgraphfftdescriptor.md)
- [MPSGraphGRUDescriptor](metalperformanceshadersgraph/mpsgraphgrudescriptor.md)
- [MPSGraphImToColOpDescriptor](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor.md)
