Get names in random order

This commit is contained in:
Marco Pesenti Gritti
2006-10-10 10:02:03 +02:00
parent 279ebda451
commit f1f0e9d26c
2 changed files with 27 additions and 5 deletions
+13 -2
View File
@@ -1,10 +1,21 @@
import random
from sugar.simulator import Bot
for i in range(0, 10):
for i in range(0, 8):
bot = Bot()
bot.wait(20)
bot.wait(random.randint(10, 20))
bot.join_activity('giraffes')
bot.change_activity('giraffes')
bot.start()
for i in range(0, 6):
bot = Bot()
bot.wait(random.randint(10, 20))
bot.join_activity('nekkhamma')
bot.change_activity('nekkhamma')
bot.start()