FIXED: changed random functions to use unix.nano