WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Ruturn of vizact.randint() is not a number (https://forum.worldviz.com/showthread.php?t=4584)

jacky 05-13-2013 09:33 AM

Ruturn of vizact.randint() is not a number
 
Hi everyone,

I ran a problem that the return of vizact.randint(1,5) function is " " 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.:
Code:

import random
number = random.randint(1,5)



All times are GMT -7. The time now is 09:30 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC