Subj : Baja feasibility
To   : Hausmaus
From : PistolGrip
Date : Sat Nov 15 2003 06:41 pm

 Re: Baja feasibility
 By: Hausmaus to Digital Man on Sat Nov 15 2003 02:23 pm

> Now I know it sounds silly to be asking this, but is there random number
> capabilities in Baja?  I've been reading over the docs and I haven't seen
> anything yet (or perhaps I skipped over it).  I'd like to do it in Baja so i
> would be backwards-compatible with older versions of Sync, but if it can (or
> should be) written in JS, then I'll just wait until I can devote a little mo
> time to learning JS.

Sure, just use the RANDOM function.

RANDOM <int_var> <#>
 args: dest     num
---------------------
Places a random number between 0 and num-1 into dest.

PistolGrip
----------

---
� Synchronet � WasteLand BBS � telnet://wasteland-bbs.com