Basic sampling algorithms for Julia