# Image Registration with Pseudo-Random Sampling throws exception randomly (maybe bug)

**URL:** https://discourse.itk.org/t/image-registration-with-pseudo-random-sampling-throws-exception-randomly-maybe-bug/1513
**Category:** Engineering
**Tags:** registration
**Created:** [January 10, 2019, 8:37am UTC](https://discourse.itk.org/t/image-registration-with-pseudo-random-sampling-throws-exception-randomly-maybe-bug/1513 "2019-01-10T08:37:02Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [January 11, 2019, 3:21pm UTC](https://discourse.itk.org/t/image-registration-with-pseudo-random-sampling-throws-exception-randomly-maybe-bug/1513/4 "2019-01-11T15:21:24Z")

</div>

Some work has been done to improve reproducibility in ITK, so it makes sense to try [ITK 5.0 beta 3](https://discourse.itk.org/t/itk-5-0-beta-3-github/1504) which is the most recent pre-release. If the problem is still not deterministic, that would be a bug in either library or your code. If it is deterministic, it will allow you to set conditional breakpoints based on frame index etc allowing easier debugging.

---

_[View the full topic](https://discourse.itk.org/t/image-registration-with-pseudo-random-sampling-throws-exception-randomly-maybe-bug/1513)._
