[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sr #105800] Random number generator builtin
From: |
anonymous |
Subject: |
[sr #105800] Random number generator builtin |
Date: |
Fri, 16 Mar 2007 07:15:35 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 |
URL:
<http://savannah.gnu.org/support/?105800>
Summary: Random number generator builtin
Project: GNU M4
Submitted by: None
Submitted on: Friday 03/16/2007 at 07:15 UTC
Category: None
Priority: 5 - Normal
Severity: 1 - Wish
Status: None
Privacy: Public
Assigned to: None
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Operating System: None
_______________________________________________________
Details:
m4 lacks a random number generator builtin. I think it would be great if such
builtin existed. Currently I use something like:
dnl random(num): Evaluates to a random number from range 0..num-1.
define([random],[eval(esyscmd(printf $RANDOM) % $1)])dnl
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/support/?105800>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [sr #105800] Random number generator builtin,
anonymous <=