telmob Posted January 7, 2013 Posted January 7, 2013 (edited) I have 10 strings like this: $i1h $i2h (etc...) I want to call these strings with random, but i can only get text and not the string itself. $RandomString = $i&Random(1,10,1)&h MsgBox(0, "Coin toss", $RandomString) Edited January 7, 2013 by telmob
michaelslamet Posted January 7, 2013 Posted January 7, 2013 #include <Array.au3> Local $aTest_Array[10] = ['AA', 'BB', 'CC', 'DD', 'EE', 'FF', 'GG', 'HH', 'II', 'JJ'] Msgbox(0,"Info",$aTest_Array[Random(1,10,1)-1]) telmob 1
telmob Posted January 8, 2013 Author Posted January 8, 2013 Thanks man! Really nice and simple, love it.
michaelslamet Posted January 8, 2013 Posted January 8, 2013 Thanks man! Really nice and simple, love it.Nice, glad can help
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