comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Generate Same Sequence of Random Numbers in IDL and C
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Generate Same Sequence of Random Numbers in IDL and C [message #89103 is a reply to message #89091] Thu, 24 July 2014 10:34 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 7/23/14, 5:42 PM, sweiss1993@gmail.com wrote:
> Did you try running both of the programs I posted? For me, the first
> trials of each program yield the same sequence of randoms. Each
> subsequent trial does not match the one from the other program.

I did not run your C programs; I used my IDL bindings to GSL.

Even the first trial of poisson values were the same?

> I only have IDL on a computer in my university, and I don't have
> access to it over the summer. Unfortunately, I can only run IDL
> programs through GDL for now. That being said, I can't try out mglib
> until later this year, so I have to rely on my C version for
> comparison.
>
> It might be that you can get the same numbers for a uniform
> distribution in IDL as the C version, but not with GDL (just a
> guess). Perhaps there is a problem with my C version, but I can't
> test that well until I solve this problem.


Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: rebin vs congrid
Next Topic: IDL and C inter-language communication / call_external()

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:31:47 PDT 2025

Total time taken to generate the page: 0.00442 seconds