Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Post Timeline

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Based on another Stack Overflow answer, Most lightweight way to create a random string and a random hexadecimal number Most lightweight way to create a random string and a random hexadecimal number , a better version than the accepted answer would be:

('%06x' % random.randrange(16**6)).upper()

much faster.

Based on another Stack Overflow answer, Most lightweight way to create a random string and a random hexadecimal number , a better version than the accepted answer would be:

('%06x' % random.randrange(16**6)).upper()

much faster.

Based on another Stack Overflow answer, Most lightweight way to create a random string and a random hexadecimal number , a better version than the accepted answer would be:

('%06x' % random.randrange(16**6)).upper()

much faster.

Named the link.
Source Link
Peter Mortensen
  • 31.3k
  • 22
  • 110
  • 134

Based on another Stack Overflow answer, another SO answer Most lightweight way to create a random string and a random hexadecimal number , a better version than the accepted answer would be:

('%06x' % random.randrange(16**6)).upper()

much faster.

Based on another SO answer, a better version than the accepted answer would be:

('%06x' % random.randrange(16**6)).upper()

much faster.

Based on another Stack Overflow answer, Most lightweight way to create a random string and a random hexadecimal number , a better version than the accepted answer would be:

('%06x' % random.randrange(16**6)).upper()

much faster.

[Edit removed during grace period]
Source Link
Thomas Ahle
  • 31.8k
  • 21
  • 99
  • 120
Source Link
Gubbi
  • 776
  • 1
  • 7
  • 19
Loading
lang-py

AltStyle によって変換されたページ (->オリジナル) /