Re: JScript Math.random() seed

Date : Thu, 21 Jul 2005 16:15:34 +0200
To : XSI(at)Softimage.COM
From : Stefan Andersson <sanders3d(at)gmail.com>
Subject : Re: JScript Math.random() seed
can't you log the random value and then reuse that? Let JScript
generate 15 radom values and then apply those?

I don't know... just a thought...

regards
stefan

On 7/21/05, Alan Jones <skyphyr(at)gmail.com> wrote:
> Hi All,
> 
> Does anyone know if there's a way to provide a seed for the JScript
> math.random function? Or some otherway to generate a random number in
> JScript where I can provide a seed - I want a random number, but I
> also want to have some control so I can make the same one get
> generated again and again (I know how stupid and pointless that
> sounds).
> 
> I've got a scripted event to randomize a particles rotation a bit, but
> I want it to give the same result for a particular particle every time
> it generates because caching particles in XSI is a nightmare.
> 
> Cheers,
> 
> Alan.
> 
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
> 


-- 
http://www.sanders3d.com/

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.