fixed randi bug and changed so tests are run locally rather than with st...

Fixed bug so resample can now work on julia 0.2.0-rc1