You are on page 1of 3

Experiment Title. 1.

Student Name: Nandan UID: 19BCS1060


Branch: CSE Section/Group : 1/A
Semester: 7th Date of Performance: 2/08/2022
Subject Name: Modelling and simulation lab Subject Code: CSP-443

1. Aim/Overview of the practical:


Computer generation of random numbers.

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):

1. learned how to use MATLAB.

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

You might also like