Avatar of Giulia Ayumi
Giulia Ayumi
Flag for Brazil

asked on 

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

Hello Experts!

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

Example:

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:
73.2
75.6
71.1
77.4
74.7

Average: 74.4

Open in new window


How can i do this?
Visual Basic.NET* Generators* DataGridView

Avatar of undefined
Last Comment
Giulia Ayumi

8/22/2022 - Mon