Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum > General > > "Loop+RandomChoice"

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:1+1 =



Original Message (ID '150589') By Bill Simpson:
Will something like this work for you? ha = {{0.20, 0.20, 0.10, 0.40, 0.10}, {0.05, 0.35, 0.15, 0.30, 0.15}, {0.50, 0.10, 0.20, 0.05, 0.15}}; {rc1, rc2, rc3}=Table[RandomChoice[ha[[i]]->{1, 2, 3, 4, 5}, 10], {i, 1, 3}]