Move random functions out into a standalone package

been meaning to do that for quite a while.

I'd rather have the autoloads generated, but this'll do for now.