hm sorry,, i couldn't understand point no.2 (please put your code tags). hm is it too long?? i need to demonstrate it in the labTwo things before I comment on the code:
1. Saying it doesn't work doesn't help others understand what it is doing, which is often a big indicator as to where to look for a problem. Explain what it does and any errors you encounter.
2. Please put your code between code tags ([code_][/code_] (without the underscore) - it makes it easier to read without making the page unnecessarily long.
As for the code, you have
Which will generate numbers 0-3. You are expecting 1-3.