> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_GeneratePoints (Python)

> Generate random points in given geometry.

Generate random points in given geometry.

SQL reference: [`ST_GeneratePoints`](/reference/wherobots-db/geometry-data/processing/ST_GeneratePoints)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_GeneratePoints

ST_GeneratePoints(
    geometry: ColumnOrName,
    numPoints: Union[ColumnOrName, int],
    seed: Optional[Union[ColumnOrName, int]] = None,
) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to hash.
</ParamField>

<ParamField path="numPoints" type="Union[ColumnOrName, int]" required>
  Precision level to hash geometry at, given as an integer or an integer column.
</ParamField>

<ParamField path="seed" type="Optional[Union[ColumnOrName, int]]" default="None" />

## Returns

<ResponseField name="return" type="Column">
  Generate random points in given geometry
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.