# Where does ActionDistribution.sample() actually get called?

**URL:** <https://discuss.ray.io/t/where-does-actiondistribution-sample-actually-get-called/14609>\
**Category:** RLlib\
**Created:** [May 7, 2024, 2:28pm UTC](https://discuss.ray.io/t/where-does-actiondistribution-sample-actually-get-called/14609 "2024-05-07T14:28:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drj](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/drj/32/4607_2.png) [@drj](https://discuss.ray.io/u/drj)\
**Post date:** [May 7, 2024, 2:28pm UTC](https://discuss.ray.io/t/where-does-actiondistribution-sample-actually-get-called/14609/1 "2024-05-07T14:28:07Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- Medium: It contributes to significant difficulty to complete my task, but I can work around it.

I’m trying to figure out where in `rllib` the `ActionDistribution` actually has it’s `.sample()` and `logp()` functions called, so that I can potentially pass them additional inputs.
