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 #89091 is a reply to message #89083] Wed, 23 July 2014 16:42 Go to previous messageGo to previous message
sweiss1993 is currently offline  sweiss1993
Messages: 4
Registered: July 2014
Junior Member
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 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.

Thanks,
Sam
[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:36:58 PDT 2025

Total time taken to generate the page: 0.00505 seconds