New in Wolfram Mathematica 6: Symbolic Statistical Computing  previous | next 
Efficient Random Choice Functions
Mathematica 6 introduces convenient and highly efficient generalized random number generation.
In[1]:=

Click for copyable input
Graphics[Line[Accumulate[RandomChoice[{-1, 1}, {5000, 2}]]]]
Out[1]=