telmob Posted January 7, 2013 Share 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 Link to comment Share on other sites More sharing options...
michaelslamet Posted January 7, 2013 Share Posted January 7, 2013 assign/put it on array Link to comment Share on other sites More sharing options...
michaelslamet Posted January 7, 2013 Share 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 Link to comment Share on other sites More sharing options...
telmob Posted January 8, 2013 Author Share Posted January 8, 2013 Thanks man! Really nice and simple, love it. Link to comment Share on other sites More sharing options...
michaelslamet Posted January 8, 2013 Share Posted January 8, 2013 Thanks man! Really nice and simple, love it.Nice, glad can help 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