Bugfix: Limiting the random number