add a thin wrapper over random
remove extra namespace common