| Author |
Comment/Response |
S. Saralamba
|
06/30/08 9:21pm
Yes, your results would be 8 but when you do not use Union function.
You are sampling the numbers from the list which has the length 15 (range[12]^341 and {1,1,1}). It is possible that RandomSample will take 1 from {1,1,1} one, two or three times. If RandomSample takes 1 from {1,1,1} three times then after you use Union you will get the length 6. Please have a look at the help of Union.
URL: , |
|