fix random number generator

it now seeds before starting. whew.