Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

random element in user defined class

Can I get random element of a user defined class of objects? For example if I define xyz(n) to generate all the $n \times n$ matrices with a particular property. How can I get a random matrix in my class xyz(5).