cronologic-de / xhptdc8_babel

Wrappers, Utilities and Examples for using the xHPTDC8 with various programming languages.
Mozilla Public License 2.0
0 stars 1 forks source link

bug in dummy random numbers #7

Closed sulimma closed 3 years ago

sulimma commented 3 years ago

`xhptdc8_read_hits()' In non-gourping-mode, the same random number is applied to all hits. Instead, for each hit_index the a new random "normal" shall be computed.

Also, I suggest that you do not create a new copy of the random number generator all the time. Just store a random number generator in a global static variable. This will be more efficient and create better random numbers. The distribution can be created each time read_hits is called.

Bassem-Ramzy commented 3 years ago

Updated