OpenFL Haxe port of RandomTimer.