snowflake.snowpark.functions.uniform

snowflake.snowpark.functions.uniform(min_: Union[Column, str, int, float], max_: Union[Column, str, int, float], gen: Union[Column, str, int, float]) Column[source]

Returns a uniformly random number.

Example::
>>> import datetime
>>> df = session.create_dataframe(
...     [[1]],
...     schema=["a"],
... )
>>> df.select(uniform(1, 100, col("a")).alias("UNIFORM")).collect()
[Row(UNIFORM=62)]
Copy