Skip to main content

Arguments

number
required
Number converted to an integer before allocation. Values less than or equal to 0 raise an argument error.

Returns

string
Raw generated bytes returned as a Lua string. The returned string length matches the allocated byte count.

Example

Generate raw bytes and print the returned Lua string length.