velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis <j...@respublica.fr>
Subject Re: Math functions
Date Fri, 13 Sep 2002 16:02:30 GMT
Look into the tools

http://cvs.apache.org/viewcvs/jakarta-velocity-
tools/tools/src/java/org/apache/velocity/tools/tools/

There is a MathTool that provides the random function you need.

Cheers,
-- Denis.

On Friday, September 13, 2002, at 04:36  pm, Nathan Barron wrote:

> Guys
>
> I am trying to obtain a random number from within my velocity 
> macros. Is
> there a function I can use to generate a random number without 
> having to
> push a random number into the context from a Java file.
> I am looking for a function like $!Math.random()
>
> Any help would be much appreciated
>
> Nathan Barron


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message