troubleshooting Question

[VB.NET] Generate Random Numbers by Given Range and Given Average

Avatar of Giulia Ayumi
Giulia AyumiFlag for Brazil asked on
Visual Basic.NET* Generators* DataGridView
13 Comments2 Solutions386 ViewsLast Modified:
Hello Experts!

I'm trying to do a little function for my app, but i really don't know to do it.


I want to do a function where i give it a range (Min / Max), Average and How many records like:

Min: 67.9
Max: 101.9
Records: 5
Average: 74.4

So it should generate into my DataGridView1 (Or DataTable) 5 records of numbers with a final average of 74.4.

The Result:

Average: 74.4

How can i do this?
Mike Tomlinson
High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2009

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 2 Answers and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros