Skip to content

Instantly share code, notes, and snippets.

@Zeex
Created August 2, 2014 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zeex/bfdf4d72ebe182d10442 to your computer and use it in GitHub Desktop.
Save Zeex/bfdf4d72ebe182d10442 to your computer and use it in GitHub Desktop.
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