make random functions into usable module