Randomness with Python and R