---
title: "randomSplit(by:)"
framework: tabulardata
role: symbol
role_heading: Instance Method
path: "tabulardata/rowgroupingprotocol/randomsplit(by:)"
---

# randomSplit(by:)

Generates two row groupings by randomly splitting the original with a proportion.

## Declaration

```swift
func randomSplit(by proportion: Double) -> (Self, Self)
```

## Return Value

Return Value A tuple of two row groupings.

## See Also

### Splitting a Row Grouping

- [randomSplit(by:seed:)](tabulardata/rowgroupingprotocol/randomsplit(by:seed:).md)
