<div class="gmail_quote">On Tue, Feb 9, 2010 at 3:48 PM, Vasyl Pasternak <span dir="ltr">&lt;<a href="mailto:vasyl.pasternak@gmail.com">vasyl.pasternak@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
mwc-random is really fast. But it eats to much memory.</blockquote><div><br></div><div>It creates and returns a vector, so if you ask it to give you a billion items, it&#39;s going to require north of 8 gigabytes of memory. This should not come as a surprise, I&#39;d hope :-)  Assuming that&#39;s not what you actually want, you should look at other entry points in the API, which you can use to generate a single value at a time in constant space.</div>
</div>