Hi, I have a set of random numbers in a datagridview. Im trying to figure out the easiest way that each time i loop through the numbers x amount of times and it somehow stores the last value so that i can average the final number. My datagrid view is a kind of montecarlo simulator.

thanks in advance.

What do you mean by

average the final number.

If you know how to loop and you know how to store variables, then I don't see what the problem is apart from laziness...

If you don't know how to do either...Google will help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.