random number generator working
floating point exception
need debugging