:: Re: [DNG] printing in a D-Bus free …
Top Page
Delete this message
Reply to this message
Author: Olaf Meeuwissen
Date:  
To: Nelson H. F. Beebe
CC: KatolaZ, dng
Subject: Re: [DNG] printing in a D-Bus free system
Hi,

Nelson H. F. Beebe writes:

> KatolaZ writes on Thu, 15 Mar 2018 23:19:42 +0000:
>
>>> my biggest frustration was not being able of finding a way to
>>> implement a 2D random walk in postscript that would show a different
>>> trajectory every time you open it :D (the only problem there is the
>>> seed).
>
> This is getting off the topic in the subject line, [...]


Indeed ;-)

> In PostScript, I don't readily find any built-in operators that could
> give a result that differs on every run, so you probably have to
> inject suitable arguments for srand from outside sources. PostScript
> can read data from files, so you could have a large file of seeds, and
> read a new seed for each simulation.


If it can read data from files, have it read from /dev/urandom! After
all, in Unix everything's a file :-)

# If it can only read *whole* files :-(, you have a problem though.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Software                        https://my.fsf.org/donate
 Join the Free Software Foundation              https://my.fsf.org/join