|
From: Daniel J S. <dan...@ie...> - 2011-02-10 19:03:52
|
Mojca,
Gnuplot only has a small set of commands and doesn't access functions
that way. Try
print rand(42)
Dan
On 02/10/2011 11:24 AM, Mojca Miklavec wrote:
> Dear list,
>
> I'm not sure how I could reset random seed. I have found:
>
>> help rand
> `rand(0)` returns a pseudo random number in the interval [0:1] generated
> from the current value of two internal 32-bit seeds.
> `rand(-1)` resets both seeds to a standard value.
> `rand(x)` for x>0 sets both seeds to a value based on the value of x.
> `rand({x,y})` for x>0 sets seed1 to x and seed2 to y.
>
> but I get
>
> gnuplot> rand(42)
> ^
> invalid command
>
> I can use "plot rand(42),rand(0)", but I would like to avoid plotting
> anything at all, I just need to reset the seed (I'm using version
> control and it is nasty that files change all the time without any
> reason).
>
> Thanks,
> Mojca
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>
--
Dan Sebald
email: daniel(DOT)sebald(AT)ieee(DOT)org
URL: http://www(DOT)dansebald(DOT)com
|