Fixed RandGenerator (now should be consistent cross-target _AND_ the original AS3)