Closed SciLor closed 2 years ago
You could try to debug this by using code from https://bitbucket.org/nomeata/tiptoi-taschenrechner/src/676f0352d3999b348e11daa7002281703ef2800a/taschenrechner.yaml?at=master&fileviewer=file-view-default to let the pen read out the value of $nextId5
.
Maybe _random_next2
for some reason gets aborted after $nextId5 := $random
?
You could try
$nextId5_tmp := $random $nextid5_tmp %= 5 $nextId5 := $nextid5_tmp
to avoid having large values in $nextId5
if the script is aborted too early.
The script isn't aborted. Nextid6 and 7 are filled fine and changed each time.
I will try your script to investigate it.
Did you get to investigate this issue?
Not really, I havn't touched the tttoool for 2 years
I’ll close this issue, anyone feel free to reopen if still relevant.
I am using following code to generate different random numbers:
I am using them to play random sounds:
Does not play anything if _random executed once or more times
Plays fine random sounds