The Gaussian distribution is considered a normal distribution of random numbers, so why is it being tested as false in the final test? Logically it should return as true shouldn't it ? My code works on all but the final test which seems reversed to me unless you know something I don't ?
Richard, please check the problem description. The task is to identify sets of uniformly distributed random numbers.
The so-called "normal distribution" (another name for which is the "Gaussian distribution") is not uniformly distributed.
This link may help illustrate the difference between those two types of distribution: https://math.stackexchange.com/questions/657254/normally-distributed-random-numbers-vs-uniformly-distributed-random-number
Determine if a Given Number is a Triangle Number
Bottles of beer
Valid Chess Moves
What is the distance from point P(x,y) to the line Ax + By + C = 0?
Divisible by n, Composite Divisors
Code breaker, Part III: Operation Xiangliu
Make your own Test Suite (part 3)
Code breaker, Part I: Operation Phoenix
Back to basics: throwing errors / exceptions
"Percentages may not total 100 due to rounding"
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office