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

Home » Public Forums » archive » Random number generation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Random number generation [message #92664] Wed, 03 February 2016 08:51 Go to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
Folks,
Hi,
I am working on some simulation problems, that I need to generate random numbers. When I use>
print, mean(randomu(seed, 100000))
0.498516
print, mean(randomn(seed, 100000))
0.00100909
1-the randomn is much better than randomu. why is that?
2-I am expecting very small number for mean of this random numbers, but as you see they are quite big (i am expecting in order of 10e-7).
Is there any other way that i can use?
Thanks for anykind of helps...
Cheers,
Dave
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLWAVE Maintainer Wanted
Next Topic: exelisvis.com is now harrisgeospatial.com

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

Current Time: Wed Oct 08 09:09:09 PDT 2025

Total time taken to generate the page: 0.00425 seconds