Professional Documents
Culture Documents
2. Task to be done:
To generate random numbers using MATLAB.
3. Algorithm/Flowchart :
Start
Step1: open MATLAB (online/offline)
Step2: type rand(3,4)
Step3: type randn(4,2)
Step4: type randi(5,3)
Step5: type randperm(4,4)
4. Theory
When you create random numbers using software, the results are not random in a strict,
mathematical sense. However, software applications, such as MATLAB, use algorithms
that make your results appear to be random and independent. The results also pass various
statistical tests of randomness and independence. These apparently random and
independent numbers are often described as pseudorandom and pseudo independent.
5. Code for experiment/practical:
rand(3,4)
randn(4,2)
randi(5,3)
randperm(4,4)
6. Result/Output/Writing Summary:
Learning outcomes (What I have learnt):
2. learned about various random number generator inbuilt functions like rand,
randi, randn, randperm.
Evaluation Grid:
Sr. No. Parameters Marks Obtained Maximum Marks
1. Demonstration and Performance 5
(Pre Lab Quiz)
2. Worksheet 10
3. Post Lab Quiz 5