rand()-helper functions

that are explicitely not cryptographically secure

Closes CID#75601,CID#75602,CID#75603,CID#75604,CID#75605,CID#75606,CID#75608