Skip to content

Instantly share code, notes, and snippets.

@fatosmorina
Created August 1, 2021 14:13
Show Gist options
  • Save fatosmorina/94dd5269f4998defe367b1c9fa84a6d2 to your computer and use it in GitHub Desktop.
Save fatosmorina/94dd5269f4998defe367b1c9fa84a6d2 to your computer and use it in GitHub Desktop.
import random
result = random.sample([1, 2, 3, 4], 2)
print(result) # [4, 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment