[EMAIL PROTECTED] wrote:
> You can use python.   Try:
>
> # Make a random phone number
> def mkphone():
>     import random
>     phone = ""
>     for i in range(10):
>         if (i == 3):
>             phone += "-"
>         if (i == 6):
>             phone += "-"
>         phone += str(random.randrange(0,9))
>     return phone
>
> # Based on
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/59865

hmmm....

import random
def mkphone():
    return "%03d-%03d-%04d"%\
        (random.randrange(200,999),random.randrange(200,999),
        random.randrange(0,9999))

most useless post ever, but i couldn't resist


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to