Generate random letters and numbers together

LC. picture LC. · Mar 19, 2010 · Viewed 9.3k times · Source

Generate 6 characters: the first character is randomly generated from the alphabets with odd ordering in the alphabet list (A, C, E, …, Y) the second character is randomly generated from the alphabets with even ordering in the alphabet list (B, D, F, …, Z) the third character is randomly generated from alphabet list (A to Z) each of the three digits is random generated from 1 to 9.

Answer

Mr. Shiny and New 安宇 picture Mr. Shiny and New 安宇 · Mar 19, 2010

Is this homework? If so please tag your question appropriately.

Here is a clue: letters and numbers are all characters, which you could store in an array.