Return to Snippet

Revision: 50132
at August 11, 2011 11:37 by ronakpatel2006


Updated Code
import os

def unique_id():
	return os.urandom(10).encode('hex')
print " Printing Unique_id"
a=unique_id()
print a

OR

import uuid
print uuid.uuid4()

Revision: 50131
at August 11, 2011 11:17 by ronakpatel2006


Initial Code
import os

def unique_id():
	return os.urandom(10).encode('hex')
print " Printing Unique_id"
a=unique_id()
print a

Initial URL

                                

Initial Description

                                

Initial Title
Generate Unique id

Initial Tags

                                

Initial Language
Python