Hi All

I want to generate a fix 6-digit random number from a function.

eg :-

     def random_generator(n):
          # do domething great
          return '6-digit random number'

    output examples
>>>random_number(6) # n is the input number that i will get from my request
>>>987657

>>>random_number(100)
>>>987647

>>>random_number(6) # if the same input comes again it would generate a
same random number
>>>987657

If the same input cannot be generated any other way to do this part

Any help would be appreciated.


-- 
Regards
Nikhil Verma
+91-958-273-3156

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to