Created
August 2, 2014 22:47
-
-
Save Zeex/bfdf4d72ebe182d10442 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
import string | |
import random | |
import sys | |
import uuid | |
print(""" | |
#include <a_samp> | |
enum e { | |
a, | |
Float:b, | |
c[10] | |
} | |
enum x_enum { | |
""") | |
for i in range(0,1000): | |
sys.stdout.write(' ') | |
if random.randint(0, 1): | |
tags = ['', 'Float:', 'bool:'] | |
sys.stdout.write(random.choice(tags)) | |
member = 'x' + str(uuid.uuid4()).replace('-', '_')[:30] | |
sys.stdout.write(member) | |
if random.randint(0, 1): | |
sys.stdout.write('[{:d}]'.format(random.randint(0, 100))) | |
elif random.randint(0, 1): | |
sys.stdout.write('[e]') | |
sys.stdout.write(',\n') | |
print(""" | |
} | |
new x[x_enum]; | |
main() { | |
printf("%d", x); | |
} | |
""") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment