You can use rand() to get a 1000 row matrix with 2 columns. Then use mean() and std() on each column or row.
I'm attaching some Monte Carlo demos for you.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!