Contents

randomSplit(by:seed:)

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

Declaration

func randomSplit(by proportion: Double, seed: Int?) -> (Self, Self)

Parameters

  • proportion:

    A proportion in the range [0.0, 1.0].

  • seed:

    A seed number for a random-number generator.

Return Value

A tuple of two data row grouping types.

See Also

Splitting a Row Grouping