[Remind-Fans] Random number
David F. Skoll
dfs at roaringpenguin.com
Wed Sep 5 15:44:00 EDT 2001
On Wed, 5 Sep 2001, Ari Reitkivi wrote:
> I need to set variable A random whole number 1 to 5000.
> Is there any way to do it in remind?
Not directly, but if your system shell (/bin/sh) is really bash:
set a shell("echo $RANDOM")
set a (coerce("int", a) % 5000) + 1
I don't know how to do it if your shell is not bash. I could add a
random() function to the next release.
Regards,
David.
More information about the Remind-fans
mailing list