Most efficient way to code 20 random numbers with different max values?
Posted on 2009-05-10
I need to get 20 random whole numbers, all with a bottom limit of 1 and a max limit that is unique for all 20.
Once i get all 20 random numbers, I need to store them in a simple array: mynumber(X)
Here are all 20 max limits:
What is the most efficient way to code my task, using the least amount of code and processing power? I know how to code this, but I already know my code will be heavy-handed, and I have the feeling some wizard out there would know how to do this clean and efficient
The application is a visual ASP.NET application so code should be VB compatible for ASP.NET and will be executed on a web server.