top of page
- API -
randomNum = reaper.AZ_GetRandomNumDouble(low,high,doubleType)
- API Detail-
▼Input value
low(number): The range of numbers (starting from)
high(number): The range of numbers (up to what point)
doubleType(integer): How much of the number after the decimal point to display
▼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_GetRandomNumDouble(1,100,0)
Msg(num)
num = reaper.AZ_GetRandomNumDouble(1,100,1)
Msg(num)
num = reaper.AZ_GetRandomNumDouble(1,100,2)
Msg(num)
num = reaper.AZ_GetRandomNumDouble(1,100,3)
Msg(num)
NUMBER
AZ_GetRandomNumDouble
Supported versions:
1.0.3
onwards
Outputs a random floating point number
bottom of page