Skip to content

Instantly share code, notes, and snippets.

@liuyix
Created July 18, 2013 08:24
Show Gist options
  • Select an option

  • Save liuyix/6027659 to your computer and use it in GitHub Desktop.

Select an option

Save liuyix/6027659 to your computer and use it in GitHub Desktop.
Python 根据时间生成随机数
import time
rand = int(time.mktime(time.gmtime()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment