RANDOM

Solved a problem in an elegant manner and want to show off your code? Know a hard-to-find feature? Post it here for the benefit of others. Questions don't belong here.
Post Reply
steve
Posts: 384
Joined: Wed Nov 30, 2011 10:20 pm
Been thanked: 77 times

RANDOM

Post by steve » Wed May 17, 2017 12:38 pm

RANDOM
(3.3.1.05)
generates random strings in Proclaim Maths
RANDOM(<"STRING" or "NUMBER"> , <output length> , <"UPPER" or "LOWER"> )
“STRING” – Outputs a mixture of Alphas and Numbers
“NUMBER” – Outputs Numbers only
“Output Length” – The length of the random output (Number of characters)
(NB due to a Progress limitation numbers can be a maximum of 9 characters long).
“UPPER” – Characters converted to upper case
“LOWER” – Characters converted to lower case

Example:

Code: Select all

R = RANDOM ( "NUMBER" , 20 , "LOWER" )
MESSAGE( "Random : " , R )

Post Reply