(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

Generate Geometric RV with Porbabilty of succcess 0.1 using only rand()

2. Relevant 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

3. The attempt at a solution

rand(n)

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB code to Geometric Random Variable

**Physics Forums | Science Articles, Homework Help, Discussion**