Sources for random data in VLC Lua scripts.

Availability

Script Types
Extension, Interface

number()

Get a single random number between 0 and 2^31 - 1

Return value

A random number between 0 and 2^31 - 1


bytes()

Get random bytes.

Parameters

Return value

String containing a random sequence bytes of length size