- #1
neeraj.patel1
- 4
- 0
Homework Statement
Generate Geometric RV with Porbabilty of succcess 0.1 using only rand()
Homework Equations
rand()
geometric rv P=(1-p)^(k-1) * p where p=0.1, k is number of trial in which we get 1st success
The Attempt at a Solution
rand(n)