kareltucek / firmware

This is fork of UHK's firmware featuring extended macro engine.
Other
82 stars 9 forks source link

Random Numbers #109

Open bistabil opened 1 year ago

bistabil commented 1 year ago

Would it be possible to support something like pseudo-random number generation in which the result could be provided as an input to some of the existing functions, i.e delay functions?

kareltucek commented 1 year ago

For technical reasons, the random number would have to be put into a register, and then used from there. So syntax would be something like setRegRand <reg index> <low bound> <upper bound>.

I don't mind merging a PR, but I probably won't implement it myself in near future.