Skip to content

Instantly share code, notes, and snippets.

@evaisse
Created April 22, 2010 12:50
Show Gist options
  • Save evaisse/375180 to your computer and use it in GitHub Desktop.
Save evaisse/375180 to your computer and use it in GitHub Desktop.
from models import Ent
def randomstr():
import random
alphabet = u'abcdefghijklmnopq rstuvwxyzéièùïà\'"'
alphabet + alphabet.upper()
string=''
for count in xrange(1,50):
for x in random.sample(alphabet,random.randint(1,15)):
string+=x
return string
for i in range(90,120):
s = Ent(name="site%s"%i, link='http://www.google.com')
s.description = randomstr()
s.put()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment