RANDBETWEEN (PQL - xl)

This function returns a random number between the numbers you specify

  • Library: PQL \ Spreadsheet \ Math & Trig
  • Compatibility: Any content (regardless of data source) in the Tabulate spreadsheet module
  • Solve: This function can be used with the Solve plug-in: both as part of the objective function and constraint functions

Syntax

RANDBETWEEN(bottom, top)

Function Arguments

Name

Description

Type

Optional

bottom

Lower number of two numbers between which a random number is chosen; this number must be less than upper

Number

top

Upper number of two numbers between which a random number is chosen

Number

Comments

This function is the same as the Microsoft Excel 'RANDBETWEEN' function - using the same inputs, logic and outputs.