Move random functions to new namespace.