Homework or Assignment? That was just an assumption so far.

Quote Originally Posted by Lenggries View Post
That said, a 1-for-1 hashing between a random integer and a valid sequence, as you suggest, is almost certainly the ideal solution for sequence generation. I'm sure it could be done by almost everyone that has posted in this thread so far, but doing so and posting the solution here would hand the OP an A+ on a silver platter, and frankly, I don't think he's earned it yet.
That does not include me. I cannot do it.

Quote Originally Posted by FireXtol View Post
Good luck, as I'm not going to code your entire assignment for you(but I have no problem answering questions).
I have a big problem answering the question.
Please code it here so I (and may be others) can learn, not just the OP.