generatePassword

Returns a randomly generated string of specified length.

Syntax

generatePassword = function(aLength);

Parameters

  • aLength
    • functions: length of the resulting string

Returned value

  • functions: random string

Notes

  • The resulting string can contain only the following symbols: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789

Examples

  1. var pass = generatePassword(15);
    //pass = '3h9kYj9eeDL0Ju4'