On 02/10/2011 02:48 PM, Mojca Miklavec wrote:
> On Thu, Feb 10, 2011 at 18:45, Daniel J Sebald wrote:
>> Mojca,
>>
>> Gnuplot only has a small set of commands and doesn't access functions
>> that way. Try
>>
>> print rand(42)
>
> Dear Daniel,
>
> Thanks a lot for the hint. This works OK, as well as somebody else's idea to use
> foo = rand(42)
>
> Not that many people care about setting random seed,
Probably plenty of people care; for reasons of repeatable simulations
being one example.
> but it might make
> sense to add a tiny note next to "help rand" about the usage (for
> those of us who are not so familiar with syntactic rules).
I hear you Mojca. However there are a lot of functions that fall in the
same category as rand(). Many other functions have the word "function"
in the documentation, whereas rand documentation does not. Perhaps that
could be specified.
I did create a patch a while back for rand that I thought was a
worthwhile improvement for controlling the seed(s). Perhaps I can
update that and place it in sourceforge.
Dan
|