Lociz Posted February 23, 2012 Posted February 23, 2012 i have a 6 label, 1 input. Ex: i write 50 number to input 1st label: 12 2...........: 17 3...........: 7 4...........: 4 5............: 9 6............: 1 Automatically write labels to Random numbers but not numbers nears with other numbers and equal with input. And max NUMBER is 20. Please help me?
Lociz Posted February 23, 2012 Author Posted February 23, 2012 i have code but its very slow Do $Equal = 0 For $sCurr = 0 to 5 $gState[$sCurr] = Random(1, GUICtrlRead($gOlcut[$sCurr]), 1) GUICtrlSetData($aCheckBox[$sNow][$sCurr], $gState[$sCurr]) $Equal = $Equal + $gState[$sCurr] Next Until $Current = $Equal
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