speakable_password
/*
** Usage:
** speakable_password(length)
**
** Arguments:
** length the length of the generated password
**
** Returns:
** a speakable random password of the given length
**
** GMLscripts.com
*/
{
var result,i;
result = "";
for (i=0; i<argument0; i+=1) {
if (i mod 2) result += string_char_at("aeiou",ceil(random(5)));
else result += string_char_at("bcdfghjklmnprstwyz",ceil(random(18)));
}
return result;
}
** Usage:
** speakable_password(length)
**
** Arguments:
** length the length of the generated password
**
** Returns:
** a speakable random password of the given length
**
** GMLscripts.com
*/
{
var result,i;
result = "";
for (i=0; i<argument0; i+=1) {
if (i mod 2) result += string_char_at("aeiou",ceil(random(5)));
else result += string_char_at("bcdfghjklmnprstwyz",ceil(random(18)));
}
return result;
}
[Please Login]
Projects: 19
Contributors: Keth, xot
comments powered by Disqus

Related: