This document describes the Random library available in the JavaScript environment for app serivices.
| Object | Random | 
        
| Functions | 
                dword bytes string  | 
        
| unsigned | The random number. | 
var rand = Random.dword();
    | unsigned size | The number of bytes that shall be returned. | 
| bool binary | Optional, defaulting to false. If false, a hexstring is returned. If true, a Uint8Array containing the random bytes is returned. | 
| string / Uint8Array | The hexstring or Uint8Array representing the generated random bytes. | 
var random128BitKey = Random.bytes(16);
    | unsigned size | The desired length of the generated random string. | 
| sting | The generated random string. | 
var randomPassword = Random.string(24);