User:Pete Olihenge

From Second Life Wiki
Revision as of 05:36, 26 January 2010 by Pete Olihenge (talk | contribs) (Created page with '== Random negative chat channel == This LSL code snippet should, according to my calculations, return a random negative integer in the range -2,000,000,000 to -1,000,000, suitab...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Random negative chat channel

This LSL code snippet should, according to my calculations, return a random negative integer in the range -2,000,000,000 to -1,000,000, suitable for use as a dialog chat channel.

<lsl> integer GetDialogChannel () {

   return (integer) llFrand (-1999000001.0) - 1000000;

} </lsl>