---
title: max
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphrandomopdescriptor/max
---

# max

The upper range of the distribution.

## Declaration

```swift
var max: Float { get set }
```

## Discussion

Discussion This value is used for Uniform distributions with float data types and Truncated Normal disributions. Defaults to 1 for uniform distributions and 2 for normal distributions.
