Programming

C Program to Generate Random Number Using Middle-Square Method

The pseudo-random numbers can be generated from Middle-Square Method. In this post, we will look at the way the middle square method works...

C Program To Generate Random Number Using Linear Congruential Method

The Linear Congruential Method uses the following recursive relation to generate the random numbers. Also Read: C Program to Implement Selection Sort x1=(a*xo+c) mod m, where,...

C++ Program For Chi-Square Test For Uniformity

The random numbers are very important for any analysis in the simulation study. One such test for the testing the uniformity is the Chi-Square...

C Program to Implement Selection Sort

The selection sort works by finding the smallest value from the array and placing it in the smallest index(in ascending) in every iteration. This...

C Program to Implement BubbleSort with Function

Bubble sort is the simplest sorting technique. In Bubble Sort, the adjacent elements of an array are checked successively and the elements are swapped...

C++ Program for Kolmogorov-Smirnov(KS) Test for Uniformity

One of the most important features of the random numbers generated in a simulation study is that the random numbers must be uniformly distributed....
Category Template 1

Function In C Programming

A function is a self-contained program segment that carries out some specific well-defined tasks. Main is the basic and simple example of a function....

Recursion In C Programming

Recursion is a process by which a function calls itself repeatedly until some specified condition has been satisfied. Example: Factorial of a number using recursion in...

Recent articles