modified real class trig funcs to static, added unit rand func overload