View Full Version : random in XSI's vbscript???
08-02-2002, 09:48 AM
The thing is i was searching for it in the reference manuals all day but i couldn't find a rand or random command..... Please hel me cause i need this.... Thanks in advance....
08-02-2002, 10:08 AM
thats because it's not an XSI function, its a core VB script function
check out microsoft's library (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vtoriVBScript.asp)
without checking, i think it's
x = Int(Rnd * 10)
this will give you a random integer between 1 and 10
08-02-2002, 11:54 AM
well it is ****ed up a bit.... every time i use this random function it returns a value that if it is multiplied by 1.4285714285714285714285714285714 it gives us the number i used.... So for 100 it returns 70, for 120 84 and so on.... Alse if you could please explain how i can use the extrudecompaxisop i would be gratefull..... There is no explanation in the manuals for that..... I tried using something like "sphere.poly.extrudecompaxisop" and extrudecompaxisop ("sphere.poly", "10")..... Please help me guys... Thanks in advance....
08-02-2002, 03:38 PM
hope this help
01-13-2006, 12:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.