{"id":2138,"date":"2016-08-26T12:00:04","date_gmt":"2016-08-26T16:00:04","guid":{"rendered":"https:\/\/blogs.mathworks.com\/steve\/?p=2138"},"modified":"2019-11-01T16:47:09","modified_gmt":"2019-11-01T20:47:09","slug":"friday-matlab-mystery-2","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/steve\/2016\/08\/26\/friday-matlab-mystery-2\/","title":{"rendered":"Friday MATLAB Mystery"},"content":{"rendered":"Who can tell me the significance of this number:\r\n\r\n0.814723686393179\r\n\r\n<hr \/>\r\n\r\n<em>Update: 29-Aug-2016<\/em>\r\n\r\n<em>Sven and Sam are correct. This the first number returned by the <tt>rand<\/tt> function in a given session, assuming no other calls to related random number functions (such as <tt>randn<\/tt>) have been made. For more information about this number and about random number generation in general, see <a href=\"https:\/\/www.mathworks.com\/content\/dam\/mathworks\/mathworks-dot-com\/moler\/random.pdf\">Chapter 9<\/a> of Cleve Moler's book <a href=\"https:\/\/www.mathworks.com\/moler\/index_ncm.html\">Numerical Computing with MATLAB<\/a>.<\/em>\r\n\r\n<em>Mikhail, the initial state used by MATLAB is the same initial state used in <tt>genrand_int32<\/tt> in the <a href=\"http:\/\/www.math.sci.hiroshima-u.ac.jp\/%7Em-mat\/MT\/MT2002\/CODES\/mt19937ar.c\">reference implementation<\/a>.<\/em>","protected":false},"excerpt":{"rendered":"<p>Who can tell me the significance of this number:\r\n\r\n0.814723686393179\r\n\r\n\r\n\r\nUpdate: 29-Aug-2016\r\n\r\nSven and Sam are correct. This the first number returned by the rand function in a given session,... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/steve\/2016\/08\/26\/friday-matlab-mystery-2\/\">read more >><\/a><\/p>","protected":false},"author":42,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[26],"tags":[460],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/2138"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/comments?post=2138"}],"version-history":[{"count":7,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/2138\/revisions"}],"predecessor-version":[{"id":2427,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/2138\/revisions\/2427"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/media?parent=2138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/categories?post=2138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/tags?post=2138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}