User talk:Allen Kerensky/Myriad Preview

From Second Life Wiki
Revision as of 17:12, 2 June 2011 by Innula Zenovka (talk | contribs) (Created page with "May I suggest you check your HIT function? I may have misunderstood, but I think if you're trying to replicate rolling a six-sided die and getting results 1-6, you may need to s…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

May I suggest you check your HIT function? I may have misunderstood, but I think if you're trying to replicate rolling a six-sided die and getting results 1-6, you may need to say 1+(integer)llFrand(6.0);

I think llFrand(6.0); is going to return values from 0.0 to 5.999999 and that casting them as integers simply chops off the decimals. So (integer)llFrand(6.0) will never be more than 5. Innula Zenovka 17:12, 2 June 2011 (PDT)