Hey all,

I want to prove that the random number generator in VB is in fact NOT random.

I'm hoping for assisstance in how to write the following program.

When I click a button, I want to start an algorithm that will generate a random number 10000 times, and each time a new number is generated it will be compared to 10 "bins" i.e. 0 - 0.1 0.1-0.2 etc up to 1. Then the program will keep a running tally in the bins until the final run is finished At this point I should have a distribution of where all the random numbers are situated between 0 and 1 all written out in a text box in the same form.

Now i've written the code for it, but I cant get it to completely work, so I'm hoping that someone could give me a hand by showing how they would do this. The two main problems are that the tally wont remember the previous iteration and just resets them all to 0, and that just clicking the button only runs the iteration once, not 10000 times as I require.

Any help greatly appreciated for this beginner!

Indy