Skip to content

Instantly share code, notes, and snippets.

Created September 3, 2013 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/6429271 to your computer and use it in GitHub Desktop.
Save anonymous/6429271 to your computer and use it in GitHub Desktop.
Inputbox, key, Enter a number
Random, numChar, 2, 8
count := 0
charInside := 0
parameter := (numChar - charInside)
Loop
{
If (key >= parameter)
{
Msgbox, Break
break
}
count := (count + 1)
charInside := (key - numChar)
parameter := (numChar - charInside)
}
rowdown := (count + 1)
Msgbox, %numChar% %rowdown% %charInside%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment