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

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

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

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: Column-class, column, column, column, column,character-method, column,jobj-method; abs, abs,Column-method; bitwiseNOT, bitwiseNOT, bitwiseNOT,Column-method; coalesce, coalesce, coalesce, coalesce,Column-method, coalesce,SparkDataFrame-method; expr, expr, expr,character-method; from_json, from_json, from_json,Column,structType-method; greatest, greatest, greatest,Column-method; ifelse, ifelse,Column-method; is.nan, is.nan,Column-method, isnan, isnan, isnan,Column-method; least, least, least,Column-method; lit, lit, lit,ANY-method; nanvl, nanvl, nanvl,Column-method; negate, negate, negate,Column-method; randn, randn, randn, randn,missing-method, randn,numeric-method; struct, struct, struct,characterOrColumn-method; to_json, to_json, to_json,Column-method; when, when, when,Column-method

Examples

## Not run: rand()

[Package SparkR version 2.2.0 Index]