Possible Duplicate:
How can I divide/split up a matrix by rows between two other matrices?
I have a matrix A with 100 rows, I want to randomly partition it into 2 matrices, one that will have 70 of the rows of A, and the other that will have the remaining 30 rows. How is this done?