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] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/functions.py#L1788-L1828)¶
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)]