PDA

View Full Version : Ruturn of vizact.randint() is not a number


jacky
05-13-2013, 09:33 AM
Hi everyone,

I ran a problem that the return of vizact.randint(1,5) function is " <vizact.VizRandomIntParam object at 0x02F7DF30> " instead of a number. I don't know the reason. Can someone explain this? Thanks very much.

farshizzo
05-13-2013, 09:45 AM
The vizact.randint command returns a dynamic parameter that can be used when creating vizact actions.

If you just want to random integer, you can use the random module.:import random
number = random.randint(1,5)