rand {SparkR}R Documentation

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 signature 'missing'
rand(seed)

## S4 method for signature 'numeric'
rand(seed)

Arguments

seed

a random seed. Can be missing.

Note

rand since 1.5.0

rand(numeric) since 1.5.0

See Also

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

Examples

## Not run: rand()

[Package SparkR version 2.2.1 Index]