Created
July 17, 2015 14:24
-
-
Save Seagor/fcc92cf3842b051e1266 to your computer and use it in GitHub Desktop.
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