Learn R Programming

hmma (version 1.1.0)

randomNumbers: Creates a random distribution over numbers.

Description

The randomNumbers function returns a vector of numbers that are random within some bandwidth. The count of all the numbers is equal to sumTo, which defaults to 1.

Usage

randomNumbers(amount, sumTo = 1, seed)

Arguments

amount

The amount of numbers in the vector.

sumTo

When all numbers in the returned vector are sumemd, they sum up to sumTo.

seed

A seed when required.