RANDBETWEEN: Basic RANDBETWEEN function from excel

Description Usage Arguments Value Examples

View source: R/RANDBETWEEN.R

Description

It acts similiarly to Excel's RANDBETWEEN function. it takes several arguments like bottom,top and number, you specify the floor, ceiling and the amount of numbers you want to generate and it gives you the random between the floor and ceiling.

Usage

1
RANDBETWEEN(bottom, top, number = 1)

Arguments

bottom

Give the function a bottom floor for the randbetween

top

Give the function a top ceiling for the randbetween

number

How many numbers should it generate?

Value

In the first example we get only 1 number from 1 to 100, while in the second example we get 3 numbers from 1 to 100 as the argument number is specified 3. Function will always return numeric class.

Examples

1
2
RANDBETWEEN(1,100, number = 1)
RANDBETWEEN(1,100, number = 3)

ExcelFunctionsR documentation built on July 1, 2020, 8:35 p.m.