On Dec 18, 2007 4:14 AM, Steve <[EMAIL PROTECTED]> wrote:
> Here are the relevant lines.
>      for(; counter < length; counter++)
>      {
>           coin = RandomNumber(0,100);
>           letter = (letter == oldletter) ? ((coin <= 60) ?
> PickChar(vowels) : PickChar(consonants)) : letter;
>           letter = (counter == 0) ? toupper(letter) : letter;
>           name += letter;
>           oldletter = letter;
>      }
>      return(name);

Well, I'm a big printf fan for debugging when you can't use a
debugger.  I'd print the value of counter before the loop starts and
first thing within the loop, just to make sure it's what you expect.
Then print out letter right after it should be capitalized.  See what
the values are, that should tell you what's failing.

Derek

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to