rand: Generate matrix with U(0, 1) trials

View source: R/rand.R

randR 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)

matlab2r documentation built on Feb. 16, 2023, 10:39 p.m.

Related to rand in matlab2r...