|
Post by hartnell on Dec 10, 2006 8:51:17 GMT -5
I'm going to be working on the specs for this for a couple of days . Random object, neat object for random stuff. random.number(numb) - generates a random number between 1 and numb random.minmax(min,max) - generates a random number between min and max random.direction - generates a random number between 0 and 359 random.choose(arg1,arg2,arg3,arg4) - randomly returns one of the arguments random.letter - randomly chooses a letter random.consonant - randomly chooses consonant random.vowel - randomly chooses a vowel -hartnell
|
|
|
Post by u9 on Dec 10, 2006 11:02:19 GMT -5
random.letter - randomly chooses a letter random.consonant - randomly chooses consonant random.vowel - randomly chooses a vowel This poses a dilemma. As most people in the world use other letters that are not in the English alphabet (latin1 i think it is called?) they (or I) will feel quite annoyed and alienated at functions that service only Americans/English. A good example is string sorting routines in languages such as C/C++ etc. Also, Americans/English do not want functions returning consonants like ð or þ.
|
|
|
Post by hartnell on Dec 10, 2006 14:47:09 GMT -5
Any proposed solutions? -hartnell
|
|