Skip to content

Instantly share code, notes, and snippets.

@hctilg
Created March 15, 2024 08:18
Show Gist options
  • Save hctilg/5e205bb5152e83436d9d70d8d51fd84a to your computer and use it in GitHub Desktop.
Save hctilg/5e205bb5152e83436d9d70d8d51fd84a to your computer and use it in GitHub Desktop.
from time import time
milliseconds = round(time() * (10 ** 3))
rand = lambda _seed, _min, _max: (_seed % (_max - _min + 1)) + _min
random = rand(milliseconds, 0, 100)
print(random)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment