@@ -0,0 +1,948 @@
+import random%0A%0A@yui.command('roll', 'random', 'rnd')%0Adef rnd(argv, user):%0A    %22%22%22Random roll. Usage: roll %5Bmax%5D %7C roll %5Bmin%5D %5Bmax%5D%22%22%22%0A    min_roll = 1%0A    max_roll = 100%0A%0A    try:%0A        if len(argv) %3E 2:%0A            min_roll = int(argv%5B1%5D)%0A            max_roll = int(argv%5B2%5D)%0A        elif len(argv) %3E 1:%0A            max_roll = int(argv%5B1%5D)%0A%0A        roll = random.randint(min_roll, max_roll)%0A        if min_roll == 1:%0A            return '%25s rolls %25d out of %25d!' %25 (user.nick, roll, max_roll)%0A        else:%0A            return '%25s rolls %25d between %25d and %25d!' %25 (user.nick, roll, min_roll, max_roll)%0A    except:%0A        pass%0A%0A@yui.command('flip', 'coin')%0Adef flip():%0A    %22%22%22Flip a coin.%22%22%22%0A    return random.choice(%5B'Heads!', 'Tails!'%5D)%0A%0A@yui.command('choose')%0Adef choose(argv):%0A    %22%22%22Randomly choose one of multiple things. Usage: choose %3Cthing1%3E %3Cthing2%3E %5Bthing3%5D ...%22%22%22%0A    if len(argv) %3E 2:%0A        return 'I choose ' + random.choice(argv%5B1:%5D)%0A

add random plug