Random - Function SummarySummary:Returns a random value of the same datatype. Usage:random value Arguments:value - Maximum value of result Refinements:/seed - Restart or randomize /secure - Returns a cryptographically secure random number. /only - Return single value from series. Description:The value passed can be used to restrict the range of the random result. For integers random begins at one, not zero, and is inclusive of the value given. (This conforms to the indexing style used for all series datatypes, allowing random to be used directly with functions like PICK.)
To initialize the random number generator to a random state, you can seed it with a value (to repeat the sequence) or the current time to start a unique seed.
That last line is a good example to provide a fairly random starting value for the random number generator. RANDOM can also be used on all series datatypes:
It will return a series that contains the same number of elements. To cut it down, you can use CLEAR:
Here's an example password generator. Add more partial words to get more variations:
Related:now - Returns the current local date and time.
| ||||||||||
|