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

Home » Public Forums » archive » Random number generators in IDL
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: random number generator [message #64568 is a reply to message #64492] Mon, 05 January 2009 14:32 Go to previous message
mkmvarma is currently offline  mkmvarma
Messages: 24
Registered: November 2007
Junior Member
On Jan 2, 4:32 pm, Kwill <wille...@gmail.com> wrote:
> On Jan 2, 3:23 pm, mkmva...@gmail.com wrote:
>
>> I am actually trying to do the monte-carlo simulation in IDL. For
>> that, i need to generate random numbers from -1 to 1. can anyone help
>> me with this?
>> Thanks
>> Mahesh
>
> This command creates an array of 50 numbers with a uniform
> distribution between -1 and 1.
>
> IDL> array = randomu(seed,50) * 2 - 1

thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Filename variable from device?
Next Topic: Keeping Up with the News

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

Current Time: Thu Oct 09 20:22:25 PDT 2025

Total time taken to generate the page: 1.52052 seconds