[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fast random numbers
From: |
Nicholas Jankowski |
Subject: |
Re: Fast random numbers |
Date: |
Sun, 24 Jul 2016 19:42:15 -0400 |
On Jul 24, 2016 5:06 PM, "Doug Stewart" <address@hidden> wrote:
>
>
>
> On Sun, Jul 24, 2016 at 4:53 PM, Max Görner <address@hidden> wrote:
>>
>> Hi,
>>
>> for a research project I need huge amounts of random numbers. Octave's normal random number generation (using 'state' initialisation) seems to be to slow. Does anyone know a faster way of producing random numbers?
>>
>> External projects would be ok.
>>
>> Sincerely,
>>
>> Max Görner
>>
>> --
>> PGP: https://wwwpub.zih.tu-dresden.de/~maxgoern/2FE6023F.asc
>>
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/help-octave
>
>
> how many do you need?
>
> I just made 1 000 000 and it is less than .1 sec.
>
Max, my guess is that you were looping your random number generation? Both Octave and Matlab are very fast with vectorized code. Perhaps you can share the code snippet you were using and we can provide more constructive suggestions?
Nick J