Cody

# Problem 174. Roll the Dice!

Solution 1909441

Submitted on 22 Aug 2019 by Avdhesh Bansal
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x1 = zeros(1,6000); x2 = zeros(1,6000); for ii = 1:6000 [x1(ii),x2(ii)] = rollDice(); end numCt = sum( bsxfun( @eq, x1, (1:6)' ), 2 ) + sum( bsxfun( @eq, x2, (1:6)' ), 2 ); assert(all(round(numCt/200) == 10) && sum(numCt) == 12000)

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
{"ft_lang_label":"__label__en","ft_lang_prob":0.60361975,"math_prob":0.9743665,"size":562,"snap":"2020-45-2020-50","text_gpt3_token_len":208,"char_repetition_ratio":0.11111111,"word_repetition_ratio":0.0,"special_character_ratio":0.4395018,"punctuation_ratio":0.2173913,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9924249,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-24T21:25:08Z\",\"WARC-Record-ID\":\"<urn:uuid:185d3ef0-022c-454c-a42f-3169f88f875e>\",\"Content-Length\":\"78898\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3c686d48-925f-4d5e-90c7-0dc313e5203c>\",\"WARC-Concurrent-To\":\"<urn:uuid:41379992-5396-4c45-8045-5c3dde0aced3>\",\"WARC-IP-Address\":\"23.223.252.57\",\"WARC-Target-URI\":\"https://it.mathworks.com/matlabcentral/cody/problems/174-roll-the-dice/solutions/1909441\",\"WARC-Payload-Digest\":\"sha1:2EXSHSZYDSZFTSZ6LOFN7JDLF76QCPX4\",\"WARC-Block-Digest\":\"sha1:MWELXKAQIEBXHQBXUNVH5MEWTCR52Q2P\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107884755.46_warc_CC-MAIN-20201024194049-20201024224049-00551.warc.gz\"}"}