![]() |
#2
|
|||
|
|||
You can use the random.choice command:
Code:
import viz import viztask import random viz.go() def MyTask(): while True: randomTime = random.choice([0.25,0.5,0.75]) yield viztask.waitTime(randomTime) print randomTime,'seconds elapsed' viztask.schedule( MyTask() ) |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Randomly and Continuously Change Avatar's Face Texture | Karla | Vizard | 4 | 08-22-2008 12:14 PM |
waittime | cade_mccall | Vizard | 4 | 04-29-2005 03:39 PM |