## Calculating Value of Pi using Monte Carlo Technique – C PROGRAM

Recently in my Numerical Techniques class I learnt a Monte Carlo technique to calculate the value of Pi . The procedure is really…

## Central Limit Theorem Demonstration – C PROGRAM

One of the fundamental theorems of probability is the Central Limit Theorem. This theorem says that if is the sum of mutually independent…

## Acceptance-Rejection Method (Rejection Sampling) for generating distributions- C PROGRAM

Acceptance-Rejection method can be used to produce random numbers following a certain probability density function. This is done by generating random numbers following…

## Simulate a DICE THROW – C PROGRAM

In the last post I wrote about how to generate random numbers in a given range: [min, max]. In this post we will…

## Generate a RANDOM NO. in a given RANGE – C PROGRAM

In the last few posts I have written about generating random numbers and using them to simulate a coin flip or a 1-d…

## Random Walk (1d) – C PROGRAM

In the last post I wrote about how to simulate a coin toss/flip using random numbers generated within the range: . We can…

## Coin Toss – C PROGRAM

In the last few posts I have been talking a lot about generating random numbers using C programming. We performed some basic checks…

## Random Number b/w 0 and 1 – C PROGRAM

In the last few posts I have been talking about random number generation using simple algorithms, and then testing if the numbers are…