Functions.Rand Method

Definition

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.

Applies to