Skip to content

Instantly share code, notes, and snippets.

@foxlet
Last active August 29, 2015 14:13
Show Gist options
  • Save foxlet/0c9f90128bb147d6a8ed to your computer and use it in GitHub Desktop.
Save foxlet/0c9f90128bb147d6a8ed to your computer and use it in GitHub Desktop.
from cloudbot import hook
@hook.command
def nprandom(text):
a = list(map(int, text.split(";")))
n = a[0]
o = []
for x in range(0, a[1]):
n = ((2345675*n)+6678909)%976
o.append(str(n))
return ", ".join(o)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment