rand {matlab2r}R Documentation

Generate matrix with U(0, 1) trials

Description

Imitates the behavior of rand() on Matlab

Usage

rand(r = 1, c = 1)

Arguments

r

number of rows of output matrix

c

number of columns of output matrix

Value

r \times c matrix with random trials from a standard uniform distribution.

Examples

rand()
rand(3, 2)

[Package matlab2r version 1.5.0 Index]