You are viewing documentation about an older version (1.16.0). View latest version

snowflake.snowpark.functions.random

snowflake.snowpark.functions.random(seed: Optional[int] = None) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L1516-L1524)

Each call returns a pseudo-random 64-bit integer.

Example::
>>> df = session.sql("select 1")
>>> df = df.select(random(123).alias("result"))
Copy
Language: English