you might want to make these static, creating a global thing called rand might just cause it to get called by some other code which wants `rand()`