Created
May 14, 2015 18:03
-
-
Save glortho/0eb75541f9d5bf584928 to your computer and use it in GitHub Desktop.
Random Integer Source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
"exec" "twxec" "-e" "rand_ints()" "$0" "$@" | |
import random | |
import gevent | |
def rand_ints(): | |
while True: | |
value = random.randint({{number minval}}, {{number maxval}} + 1) | |
yield {"value": value} | |
gevent.sleep({{number delay}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment