Vely logo Empower C
install  tutorials  examples
documentation  license  about

12.1.0 released on Sep 19, 2022

random-string



PURPOSE:


Obtain a random string.

SYNTAX:


random-string to [ define ] <random string> [ length <string length> ] [ number ]


DESCRIPTION:


random-string obtains random string of length <string length>. If "length" clause is omitted, the length is 20 by default. You can create <random string> with "define" clause. If "number" clause is used, then the resulting string is composed of digits only ("0" through "9"), otherwise alphabet letters ("a"-"z" and "A"-"Z") are used as well.

Random generator seed is based on current time and process ID.

EXAMPLES:


Get a 100-digit long random value (as a string):
random-string to define str length 100
pf-out "%s\n", str


SEE ALSO:


Encryption ( decrypt-data   encrypt-data   hash-string   random-string  )  SEE ALL (documentation)



Copyright (c) 2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. Icons copyright PaweĊ‚ Kuna licensed under MIT. This web page is licensed under CC-BY-SA-4.0.