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

Home » Public Forums » archive » randomn problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
randomn problem [message #52956] Sun, 11 March 2007 11:24 Go to previous message
askemer is currently offline  askemer
Messages: 4
Registered: March 2007
Junior Member
Hi all,

I was playing around with randomn and noticed some weird behavior:

IDL> print, stddev(randomn(seed, 1e7))

I consistently get back numbers around ~0.992. I've tried it on a
different computer, and the result was not exactly the same, but
similar. If I change 1e7 to 1e8, the problem gets worse, and I get
~0.853. I've tried the syntax with floats, integers, and longs, and I
still get the same answer. Does anyone know what could be going on?

-Andy
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Material properties for object graphics
Next Topic: Sky Falling, etc. : Array substitution + addition with plus-equal (+=)

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

Current Time: Wed Oct 08 15:53:17 PDT 2025

Total time taken to generate the page: 0.00374 seconds