C-Programming PPT L15
C-Programming PPT L15
MTL505
Lecture-15
Random number
Randomness and Random numbers
• A number of natural phenomenon are random in
nature
• Random numbers are very useful to create
simulation data, which can mimic real world or
experimental data. Such data is very useful for
development and validation of
methods/algorithms
• Real world data is always corrupted with noise of
certain amount (i.e. 5%, 10% of peak signal).
• Such noise can be mimicked using the concept of
random numbers
Random numbers or Pseudo Random Numbers
• A random number is a number chosen as if by chance from
some specified distribution such that selection of a large set
of these numbers reproduces the underlying distribution.
• Therefore:
– x2 = m2 + (x1-m1)/(M1-m1)*(M2-m2)