JScript Math.random() seed

Date : Thu, 21 Jul 2005 15:05:45 +0100
To : xsi(at)Softimage.COM
From : Alan Jones <skyphyr(at)gmail.com>
Subject : JScript Math.random() seed
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


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.