snowflake.snowpark.functions.randn¶
- snowflake.snowpark.functions.randn(seed: Optional[Union[Column, str, int, float]] = None) Column [source]¶
Generates a column with independent and identically distributed (i.i.d.) samples from the standard normal distribution.
- Example::
>>> df = session.create_dataframe([1,2,3], schema=["seed"]) >>> df.select(randn("seed").alias("randn")).collect() [Row(RANDN=-1.143416214223267), Row(RANDN=-0.78469958830255), Row(RANDN=-0.365971322006404)] >>> df.select(randn().alias("randn")).collect()