One of the downsides of jscript. It's random() method isn't repeatable or
seadable. For RNG work it's never a good idea to trust supplied ones, they
rarely work. I remember years ago doing a test on a DG machine, generated
thousands of random numbers inside a cube and viewed the result in 3D.
Damned if there wasn't an empty slice right through the middle of the field.
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM
> [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Alan Jones
> Sent: 21 July 2005 15:06
> To: xsi(at)Softimage.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
>
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi