more performant; fixed rand bug so I can package w/ Gosus old Ruby