Functions.Rand Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Rand() |
Generate a random column with independent and identically distributed (i.i.d.) samples from U[0.0, 1.0]. |
Rand(Int64) |
Generate a random column with independent and identically distributed (i.i.d.) samples from U[0.0, 1.0]. |
Rand()
Generate a random column with independent and identically distributed (i.i.d.) samples from U[0.0, 1.0].
public static Microsoft.Spark.Sql.Column Rand();
static member Rand : unit -> Microsoft.Spark.Sql.Column
Public Shared Function Rand () As Column
Returns
Column object
Applies to
Rand(Int64)
Generate a random column with independent and identically distributed (i.i.d.) samples from U[0.0, 1.0].
public static Microsoft.Spark.Sql.Column Rand(long seed);
static member Rand : int64 -> Microsoft.Spark.Sql.Column
Public Shared Function Rand (seed As Long) As Column
Parameters
- seed
- Int64
Random seed
Returns
Column object
Remarks
This is non-deterministic when data partitions are not fixed.