Hello Sazna,
Does embedded wizard supports any instant methods to achieve this functionality?
You will need to implement own routine to compose the password from random characters. If your application does not have high security requirements, you could use the pseudo random number generator function math_rand(). The following example demonstrates how to get a string of random characters A..Z. Based on this idea you can add more character ranges (digits, special characters, etc.):
// Desired number of signs in the resulting string
var int32 count = 8;
var string s;
// Compose the string of random characters
while ( count-- > 0 )
s += char( math_rand( int32( 'A' ), int32( 'Z' )));
// 's' contains the random string
trace s;
In case of special characters, prepare a string containing the special characters and select the characters from the string using a random index:
var string specialChars = "!ยง%&/()*+#'-_.:,;";
// Desired number of signs in the resulting string
var int32 count = 8;
var string s;
// Compose the string of random characters
while ( count-- > 0 )
s += specialChars[ math_rand( 0, specialChars.length - 1 )];
// 's' contains the random string
trace s;
I hope it helps you further.
Best regards
Paul Banach