"True" ran(dom) function in templ_chip.txt

Issue #102 new
Jayrope . created an issue

Certain blocks based on the ran function (line 66++ in templ_chip.txt) show, that the random isn't actually random as anytime the function is called the same pseudo-random sequence starts over from the beginning. Would there be a way to change the random seed (currently fixed to 22222) to a dynamically created one, based for instance on absolute processor time or a relative timer-based count (since firmware was updated or since buffer battery was empty last time)?

That way at least anyone calling the ran function would most probably get a different sequence, even if it is still not really random. Presently i start ranseqnand get the same sequence every time. Thank you.

Comments (0)

  1. Log in to comment