Added MMouse improvements from SRL5
Replay of updates to randomness by Hobbit from :https://github.com/SRL/SRL-5/commit/0497c973f11c4d5b17b39d7c98258aaec48113b5
With fixes and optimizations.

Signed-off-by: idynin <ilya@idynin.com>