Just got this to work. Thanks!!
One minor thing though that I'm hoping is an easy fix.
The random number that is generated is formatted like 54.000000 or 13.00000
Is there a way to get it so it just shows the number without the decimal and zeroes?
Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators
(SELECT extract(milliseconds from now())::int * 7 % 100) * (cnt_hands / cnt_hands)
SELECT FLOOR(RANDOM() * 100) + 1;
SupremeLeader wrote:I'm trying to get more than one random number per cycle. Two things:
1. I modified the original expression but I'm not sure what's happening under the hood:
- Code: Select all
(SELECT extract(milliseconds from now())::int * 7 % 100) * (cnt_hands / cnt_hands)
I multiplied by 7 then did % 100. It does give me a random number between 0-100, however I'm not sure if this number would be inherently biased?
Return to Custom Stats, Reports and HUD Profiles
Users browsing this forum: 4StarGen and 20 guests