AminetAminet
Search:
84783 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/Randomizer.lha

Mirror:Random
Showing: ppc-warpup icongeneric icon
No screenshot available
Short:Generate random numbers for scripts
Author: T.Heinrich at t-online.de (Thomas Heinrich)
Uploader:T Heinrich t-online de (Thomas Heinrich)
Type:util/cli
Version:1.1
Architecture:m68k-amigaos
Date:1997-07-21
Requires:OS2.04+, MC68000+
Replaces:Randomizer#?
Download:util/cli/Randomizer.lha - View contents
Readme:util/cli/Randomizer.readme
Downloads:444

While I am browsing through the web, I am collecting looots of
photos of phantastic women. So I really could not decide which
one to use as the workbench backdrop. Using WBPattern to create
multiple preferences files was easy, but how get them changed
after every reboot ?

So I renamed all the prefs as Backdrop.xx, where xx is a number
from 0 to 197 ;^). But how do I generate a random number in a shell ?
Finally I quickly wrote a program, which used the system seconds,
and masked out the lower few bits, being able to use first 16 then
32 backdrops.

I was not to satified with that, as it only produced fixed steps
to use as numbers (16, 32 the next would have been 64). I spent
half an afternoon, then, to produce this program here: Randomizer !

What it does:
-------------
It also reads the seconds from the timer of your Amiga and then
produces a CONFIGURABLE number of random numbers. For script
convenience, it stores the number in a local shell variable named
"RANDOM". So you can access it e.g. by typing

WBPattern Backdrop.$RANDOM USE

This loads a random backdrop picture, given you prepared the prefs
in the first place.

What YOU should do:
-------------------
READ THE DOCS BEFORE USING THE PROGRAM !

To be honest, there are no docs... Search for the file "ReadMeFirst"
in this distribution, to figure out how to make Randomizer work.

One more, at last: It is FREEWARE ! And it comes with the main part
of the C source !!!

Have fun,
    Thomas "Hoin" Heinrich.


Contents of util/cli/Randomizer.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  594    1233  48.2% -lh5- 2567 Jul  4  1997 Random.info
[generic]                 1241    1736  71.5% -lh5- 0b64 Jul 16  1997 Random/Randomizer
[generic]                  968    2071  46.7% -lh5- 067c Jul 16  1997 Random/Randomizer.c
[generic]                  967    1718  56.3% -lh5- 6135 Jul 16  1997 Random/Randomizer.readme
[generic]                 1979    4066  48.7% -lh5- 4aff Jul 16  1997 Random/ReadMeFirst
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         5 files    5749   10824  53.1%            Jul 20  1997
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>