How to make a loop for this problem!
- To: mathgroup at smc.vnet.net
- Subject: [mg75355] How to make a loop for this problem!
- From: pskmaths at googlemail.com
- Date: Thu, 26 Apr 2007 03:33:18 -0400 (EDT)
Hi all, This comand: A = Array[Random[Integer] &, {3, 3}] generates a 3x3 random matrix its terms between 0 and 1. I need to make a loop that geerates a finite number of matrices, let's say 512 and this loop check that non of the matrices is equal to another one (no repeated matrices) I can geerate thoses random, matrices with this command: Do[Print[Array[Random[Integer] &, {3, 3}]], {512}] but I may have two matrices that are equal and also as far as I know I cann't use the out put because of the command, Print.