tttommeke Posted December 30, 2007 Share Posted December 30, 2007 Creates a random string with numbers, low and high chars. Good for when you need a random name for a variable,file,... $StringArray = StringSplit("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789","") Func _Randomstring($Lenght) $String = "" $I = 0 Do $String = $String & $StringArray[Random(1,$Stringarray[0])] $I += 1 Until $I = $Lenght Return $String EndFunc Call it like : _Randomstring(5) To get a string from 5 characts Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now