# Help me save my semester

**URL:** <https://root-forum.cern.ch/t/help-me-save-my-semester/45311>\
**Category:** Newbie\
**Created:** [June 8, 2021, 7:01pm UTC](https://root-forum.cern.ch/t/help-me-save-my-semester/45311 "2021-06-08T19:01:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_Awada](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ali_awada/32/23695_2.png) [@Ali\_Awada](https://root-forum.cern.ch/u/Ali_Awada)\
**Post date:** [June 8, 2021, 7:01pm UTC](https://root-forum.cern.ch/t/help-me-save-my-semester/45311/1 "2021-06-08T19:01:39Z")

</div>

Create exponential random number generator using  
these macros and example from previous slide  
❑ Use uniform\_generator and TRandom::Uniform() and  
compare their performances  
❑ Plot generated X distribution and compare it with f(x)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [June 15, 2021, 7:39am UTC](https://root-forum.cern.ch/t/help-me-save-my-semester/45311/2 "2021-06-15T07:39:26Z")

</div>

It seems that you have all the needed information in the _“previous slide”_.

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 15, 2021, 8:45am UTC](https://root-forum.cern.ch/t/help-me-save-my-semester/45311/3 "2021-06-15T08:45:01Z")

</div>

Hi @Ali_Awada ,  
this is a user support forum, we do not do homework but we can help fix bugs in your code if you encounter problems.

Cheers,  
Enrico
