I want to do this but I have no idea how to do it -I will use a button to go to the function -When I click it, the script must generate a random number -each time I click it the number must be different -When I reach the maximum number show a message -Let's say that the minimum number is 1 and the maximum 5   I found a similar function but can't make it work $numbers = 5 Global $r,$str While 1     $r = String(";"&Random(1,$numbers,1)&";")