COMPUTATIONAL THINKING
By
Dept. of CSE
PVPSIT, Kanuru.
PRASAD V. POTLURI SIDDHARTHA INSTITUTE OF TECHNOLOGY
1. The sequence should appear as though each number had occurred by chance.
2. Each number should have a specified probability of falling within a given range.
Dept of CSE
2025 - 26
GENERATION OF PSEUDO-RANDOM NUMBERS
PVPSIT (Autonomous)
Problem Solving Techniques
Dept of CSE
2025 - 26
PVPSIT (Autonomous)
Problem Solving Techniques
Dept of CSE
2025 - 26
PVPSIT (Autonomous)
Problem Solving Techniques
0 <= X0 < m.
a mod 8 = 5
a mod 200 = 21
Dept of CSE
2025 - 26
PVPSIT (Autonomous)
Problem Solving Techniques
Dept of CSE
2025 - 26
PVPSIT (Autonomous)
Problem Solving Techniques
Dept of CSE
2025 - 26
Example:
PVPSIT (Autonomous)
Problem Solving Techniques
Dept of CSE
2025 - 26
Algorithm:
PVPSIT (Autonomous)
Problem Solving Techniques
Dept of CSE
2025 - 26
PVPSIT (Autonomous)
Problem Solving Techniques