On Thu, Jan 08, 2009 at 08:52:21AM +0100, Werner Smekal wrote:
> Hi Andrew,
> >
> > I woke up this morning and realised the cause of this. Currently
> > test_octave.sh runs all the tests from a single octave process. I
> > suspect this is the cause since plrandd is now used in 2 examples (17
> > and 21) and so example 21 will give different results now since the
> > random number generator will already have been called in example 17.
> 
> This sounds reasonable, since the corresponding variables are static.  
> Just call
> 
> plseed(5489)
> 
> in the octave examples before plrandd(), this will set the random  
> number generator to the default seed. No need to do this for the other  
> bindings as long as a new process is started for every example.

Thank's Werner. I'd actually delved into the code for the magic value
anyway. I have included this in all the other implementations of example
21 since plseed is not tested anywhere else. This showed up bugs in the
f77 and f95 bindings to plseed which I have also fixed. I've also
documented plrandd and plseed in api.xml. They were currently missing,
which was how they had got missed off when I checked the api coverage in
the examples recently. I should probably go back to plplot.h to ensure
the documentation is complete.

Andrew

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to