Squirrel/Server/Functions/Utils/RandomString
From Liberty Unleashed Wiki
This function currently does not work.
This function generates a random string based on two integers ( minlength and maxlength )
Contents |
Syntax
RandomString( int minlength, int maxlength )
Arguments
- minlength - An integer which sets the minimum length of the string.
- maxlength - An integer which sets the maximum length of the string.
Example
function onConsoleInput( cmd, text ) { if( cmd == "randomstring" ) { local string = RandomString( 5, 50 ); print("Generated string: " + string ); } }
Notes
The function print and the event onConsoleInput were used in this example. More info about them on their corresponding page.