Yep, I just checked.  Im getting the random_seed from HUD_PostRunCmd() then
use it as:

sx=UTIL_SharedRandomFloat(pl.random,-0.06f,0.06f);
sy=UTIL_SharedRandomFloat(pl.random,0.0f,0.12)-0.06f; //Testing to see if
negative #s were problem..they werent
gEngfuncs.Con_Printf("Random Float: %i %f %f\n",pl.random,sx,sy);

This prints out a different random seed each time..but always -0.12 for the
floats :(
>From: "Lord Booga" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: [hlcoders] UTIL_SharedRandomFloat() always returning low value
>Date: Sat, 6 Apr 2002 04:43:09 +1200
>MIME-Version: 1.0
>Received: from [205.158.143.9] by hotmail.com (3.2) with ESMTP id
>MHotMailBE771F47006640043721CD9E8F0910D40; Fri, 05 Apr 2002 08:43:52 -0800
>Received: from list.valvesoftware.com (localhost [127.0.0.1])by
>list.valvesoftware.com (Postfix) with ESMTPid 84BA7C49B; Fri,  5 Apr 2002
>08:45:04 -0800 (PST)
>Received: from deborah.paradise.net.nz (deborah.paradise.net.nz
>[203.96.152.32])by list.valvesoftware.com (Postfix) with ESMTP id
>C3FF6C431for <[EMAIL PROTECTED]>; Fri,  5 Apr 2002 08:44:20
>-0800 (PST)
>Received: from boogsy (203-96-146-26.apx1.paradise.net.nz
>[203.96.146.26])by deborah.paradise.net.nz (Postfix) with SMTP id
>6F137D1796for <[EMAIL PROTECTED]>; Sat,  6 Apr 2002 04:42:46
>+1200 (NZST)
>From [EMAIL PROTECTED] Fri, 05 Apr 2002 08:44:37 -0800
>Delivered-To: [EMAIL PROTECTED]
>Message-ID: <001901c1dcc0$f84445e0$1a9260cb@boogsy>
>References: <[EMAIL PROTECTED]>
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook Express 5.50.4522.1200
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
>Sender: [EMAIL PROTECTED]
>Errors-To: [EMAIL PROTECTED]
>X-BeenThere: [EMAIL PROTECTED]
>X-Mailman-Version: 2.0.8
>Precedence: bulk
>List-Help: <mailto:[EMAIL PROTECTED]?subject=help>
>List-Post: <mailto:[EMAIL PROTECTED]>
>List-Subscribe:
><http://list.valvesoftware.com/mailman/listinfo/hlcoders>,<mailto:[EMAIL PROTECTED]?subject=subscribe>
>List-Id: Discussion of Half-Life Programming
><hlcoders.list.valvesoftware.com>
>List-Unsubscribe:
><http://list.valvesoftware.com/mailman/listinfo/hlcoders>,<mailto:[EMAIL PROTECTED]?subject=unsubscribe>
>List-Archive: <http://list.valvesoftware.com/pipermail/hlcoders/>
>X-Original-Date: Sat, 6 Apr 2002 04:43:09 +1200
>
>(long shot) But is the random generator being seeded properly?
>
>----- Original Message -----
>From: "Jonah Sherman" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Saturday, April 06, 2002 4:24 AM
>Subject: [hlcoders] UTIL_SharedRandomFloat() always returning low value
>
>
> > anyone know what could cause this?
> >
> > _________________________________________________________________
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives,
>please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
> >
>
>_______________________________________________
>To unsubscribe, edit your list preferences, or view the list archives,
>please visit:
>http://list.valvesoftware.com/mailman/listinfo/hlcoders
>




_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to