Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Random Numbers/Provability
Date: Wed, 18 Mar 2009 02:38:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 5
Message-ID: <gppmq9$jld$1@fred.mathworks.com>
References: <gpplbd$ge6$1@fred.mathworks.com> <gppm5m$8tb$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1237343881 20141 172.30.248.38 (18 Mar 2009 02:38:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 18 Mar 2009 02:38:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1731476
Xref: news.mathworks.com comp.soft-sys.matlab:525737

Great hint. I think I got it. At least the first part, I think I can handle the rest. Thanks a lot. I rounded out the numbers which make sence

nrep = 100000;
toss = round(rand(10000,2).*6);
r = sum(toss(:,1) + toss(:,2) == 7)