|
|
Chris Huff wrote:
>
> In article <396DE7BD.CBD106A4@aetec.ee>, Vahur Krouverk
> <vah### [at] aetecee> wrote:
>
> > For value between 1 and 5 use following expression:
> > (rand()+1)*4
>
> Umm, that will give random numbers between 4 and 8. You want this:
> (rand()*4+1)
> Or use the RRand() macro I posted earlier.
>
Damn, You are right. Only excuse would be, that it's 6 p.m. here and I
my brain is tired already...
Post a reply to this message
|
|