I was thinking about that but when I use SRND to seed RND like shown below I get 1 string that has 10 characters. The other four are the same with extra characters added at the end to match the length specified. Without SRND I get five completely different strings so I took it out.

Seeding with @MSECS or @TICKS does not make any difference.

 Code:
Break on

? RandomString(10)
? RandomString(12)
? RandomString(14)
? RandomString(16)
? RandomString(18)

Sleep 10

Function RandomString($length)
	;Define variables
	Dim $characters, $i, $str
	
	;Set characters to use in random string
	$characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789<>/{}=+&%$#@!*~"
	
	;Seed the random number generator
	SRnd(@MSECS)
	
	;Loop to create random string until the string has the same length as specified
	For $i = 1 to $length + 1
		;Add next character to random string
		$str = $str + SubStr($characters, Rnd(Len($characters)), 1)
	Next
		
	$RandomString = $str
EndFunction
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.