telmob 2 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 Share this post Link to post Share on other sites
michaelslamet 33 Posted January 7, 2013 assign/put it on array Share this post Link to post Share on other sites
michaelslamet 33 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]) 1 telmob reacted to this Share this post Link to post Share on other sites
telmob 2 Posted January 8, 2013 Thanks man! Really nice and simple, love it. Share this post Link to post Share on other sites
michaelslamet 33 Posted January 8, 2013 Thanks man! Really nice and simple, love it.Nice, glad can help Share this post Link to post Share on other sites