SparkR (version 2.1.2)

rand: rand

Description

Generate a random column with independent and identically distributed (i.i.d.) samples from U[0.0, 1.0].

Usage

rand(seed)

# S4 method for missing rand(seed)

# S4 method for numeric rand(seed)

Arguments

seed

a random seed. Can be missing.

See Also

Other normal_funcs: abs, bitwiseNOT, coalesce, column, expr, greatest, ifelse, isnan, least, lit, nanvl, negate, randn, struct, when

Examples

Run this code
# NOT RUN {
rand()
# }

Run the code above in your browser using DataCamp Workspace