Question: using LabVIEW 3. (Nested loops) There has always been some talk in the LabVIEW community that the included Random Number Generator (RNG) is not truly
3. (Nested loops) There has always been some talk in the LabVIEW community that the included Random Number Generator (RNG) is not truly random. There are some complicated ways to test this, but it's an interesting exercise to come up with methods to test the function. Create a program using the RNG that displays the output of this function (a fractional random number between 0 and 1 ); place a While Loop around the function. Develop a method to obtain the average of multiple random numbers (use a for loop that outputs an array of random numbers; wire the output of the RNG to the right edge of the for loop and an array will be created when the for loop ends) and stop the loop when the average of the array is within 1% of 0.5 (that's between 0.505 and 0.495; search for and use the "In Range and Coerce" and "Mean" functions). How many random numbers generated by your For Loop does it take to stop the While Loop when the program is only run a single time? What if the 1% is reduced to 0.1%
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
