Wolfram Technology Guide: Symbolic Statistical Computing  previous | next 
Efficient Random Choice Functions
Mathematica 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]=