sp_string_random returns a string of random alphanumeric characters.
Lasso
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.rst
contributing.md
sp_string_random.lasso

README.rst

sp_string_random - Lasso 9 method returns a string of random alphanumeric characters

Description

[sp_string_random] is a Lasso 9 method that returns a string of random alphanumeric characters. It accepts an optional integer parameter representing the length of the string to be returned. By default, twenty characters are returned.

Usage

sp_string_random
'<br />'
sp_string_random(30)
=>
l3ge2kgkMwG8TaHyitdj
wX5gpPH68nQY80CsC2qs6BnWATC7hJ

Installation

Install the file sp_string_random.lasso where you think is best. Place it either in your Lasso Server's or Site's LassoStartup or LassoLibraries directory, restarting the appropriate scope as needed, or include it in the page that calls the methods. I recommend Lasso Site LassoStartup.