Learn R Programming

exams.forge (version 1.0.10)

random: Random

Description

Returns a index from 1:length(v) randomly ordered.

Usage

random(v)

rand(v)

Value

Index

Arguments

v

vector: vector with elements

Examples

Run this code
random(-3:3)

Run the code above in your browser using DataLab