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

# dataType

The data type of the generated result values.

## Declaration

```swift
var dataType: MPSDataType { get set }
```

## Discussion

Discussion When sampling from the uniform distribution, valid types are MPSDataTypeFloat16, MPSDataTypeFloat32, and MPSDataTypeInt32. When sampling from the normal or truncated normal distribution, valid types are MPSDataTypeFloat16 and MPSDataTypeFloat32.
