randomPoints

fun randomPoints(pointCount: Int, random: Random = Random.Default): List<Vector2>(source)

Generates specified amount of random points that lie inside the Shape.

Parameters

pointCount

The number of points to generate.

random

The Random number generator to use, defaults to Random.Default.