bitwise random numbers in c

should implement these in math.h