a kind of Random generator
Not only considering a hold down button counter, but also a counter since start time, to add some "randomization". Warning : it looks random only for small maxRandomValue. If you put it to 100 for exemple, it looks like a sequence of growing number... It may be better to not reseting buttonPressCount each time ?