top of page
- API -

randomNum = reaper.AZ_GetRandomNumInteger(low,high)

- API Detail-

▼Input value

low(number): The range of numbers (starting from)

high(number): The range of numbers (up to what point)


▼Output value

retval(boolean): Success or failure of API execution

rendom(number): Numbers output within a range

- SCRIPT -

package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dll"

require("reaper_AZSTOKE_SILVER")


function Msg(param)

reaper.ShowConsoleMsg(tostring(param).."\n")

end


num = reaper.AZ_GetRandomNumInteger(1,100)

Msg(num)


num = reaper.AZ_GetRandomNumInteger(1,100)

Msg(num)


num = reaper.AZ_GetRandomNumInteger(1,100)

Msg(num)

NUMBER

AZ_GetRandomNumInteger

Supported versions:

1.0.0

onwards

Outputs a random integer number

bottom of page