get_random_string(p_length integer, p_tokens text DEFAULT '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'::text)


Description

Returns a random text string, by default consisting of alpha-numeric symbols, of the requested length.

An arbitrary set of characters from which to draw the random string may be provided my the caller.

Parameters

  • p_length :: Required? True; Default: ( No Default )

    The number of random characters to return.

  • p_tokens :: Required? False; Default: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ

    An option alternate set of characters to use in the generation.

Parameters

Name Type Mode
p_length integer IN
p_tokens text IN

Definition