Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need help with the last part (Number 5) on my C++ lab Note: Please use comments

ID: 3847376 • Letter: N

Question

Need help with the last part (Number 5) on my C++ lab

Note: Please use comments to explain key parts. Also the randomx.h file needs to be called in the new code, Thanks!

5. Verify the Normal Random Number You are asked to verify the rx normal function whether it generates Gaussian random numbers. Call the rx normal(u,s) for n times where u nd s are the desired mean and standard deviation, respectively. Calculate their sum and sum of square as Ex and yx2 and compare their real mean and standard deviation to the desired mean and standard deviation. EUX] ELX2] Verify the ratio of samples within Hto,Ht2o, ut 30 ranges based on the statistics from the wikipedia (https en.wikipedia.org/wiki Normal distribution

Explanation / Answer

*
* C# Program to Generate Random Numbers
*/
using System;
class Program
{
static void Main()
{
Console.WriteLine("Some Random Numbers that are generated are : ");
for (int i = 1; i < 10; i++)
{
Randfunc();
}
}
static Random r = new Random();
static void Randfunc()
{
int n = r.Next();
Console.WriteLine(n);
Console.ReadLine();
}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote