rand modifies the RNG you pass to it (it’s a function with sideeffects, by the nature of how pseudo-RNGs work). If you want to keep getting the same value, reseed the rng object explicitly via seed!.
(BTW, in 1.7 there will be a new RNG called Xoroshiro, which will be smaller & faster. This will also be the new default RNG. In combination with some other changes to how RNGs work, like one default-RNG per task, the stream of random numbers generated by rand will change.)