uniform

fun List<List<Rectangle>>.uniform(random: Random): Rectangle(source)

Selects a random Rectangle from a nested list of rectangles using the provided random generator.

Return

A randomly selected Rectangle from the nested list.

Parameters

random

An instance of Random used to select rectangles in a random manner.