Password is probably the one people need Username one was just for fun
Username Genorator
set letterList to {"Man", "Boy", "Woman", "Girl", "WoW", "Fan", "Minecraft", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "FanBoy", "FanGirl", "CallofDutyFan", "AppleScripter", "Windows", "Mac", "KillerMonkey", "Gamer", "10", "11", "13", "14", "15", "16", "17", "18", "19", "20"}
randomThreeLetters(letterList)
on randomThreeLetters(letterList)
set cleanList to {}
repeat 3 times
set cleanList's end to some item of letterList
end repeat
return (cleanList as text)
end randomThreeLetters
Password Genorator
set letterList to {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "1", "2", "3", "4", "5", "6", "7", "8", "9", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "0", "/", "?"}
randomSevenLetters(letterList)
on randomSevenLetters(letterList)
set cleanList to {}
repeat 7 times
set cleanList's end to some item of letterList
end repeat
return (cleanList as text)
end randomSevenLetters
Hope you like
EDIT:
I have edited the code some more and did this
set letterList to {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "1", "2", "3", "4", "5", "6", "7", "8", "9", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "0", "/", "?", "_"}
randomSevenLetters(letterList)
on randomSevenLetters(letterList)
set cleanList to {}
display dialog "how many letters would you like?" buttons {"4", "10", "16"}
set the clicked_button to the button returned of the result
repeat clicked_button times
set cleanList's end to some item of letterList
end repeat
return (cleanList as text)
end randomSevenLetters
display dialog result buttons {"I hate that password", "Thanks for the password"}
set the clicked_button2 to the button returned of the result
if the clicked_button2 is "I hate that password" then
display dialog "Try aguin please "
end if
I’m Wondering if it would be possible to set up a repeat if you pressed I hate that password button and is it possible to have more then 3 buttons