From: Michael C. <mic...@ua...> - 2004-11-08 11:15:01
|
That would be serious if it were true, but I just tried it out and it looks ok to me, using randn from current CVS. Also try out hist(randn(10000,1),30,1); Are you sure you're interpreting the plot correctly? The x axis labels are just the indices of the 10000 random numbers. If you're sure your interpretation is correct, could you attach an image of the plot you see to a message? M. On Monday 08 November 2004 09:55, Justus Piater wrote: > Hi, > > randn() from octave-forge-2004.09.09 (CVS version 1.11) appears to be > broken. The generated numbers are clearly not normally distributed: > Numbers near zero (the most likely numbers) are extremely rare, and > stretches of generated numbers appear to be sampled from different > distributions that vary from some 10s to some 1000s of numbers in > length. > > See for yourselves by issuing > > plot(1:10000, randn(1, 10000), "."); > > I have not tested later versions from CVS, but the CVS logs do not > suggest that this has been fixed. For my purposes, I'm reverting back > to the randn() from octave-2.1.57 whose output looks ok. > > Justus |