Skip to content

Instantly share code, notes, and snippets.

@pdbartsch
Created February 7, 2019 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdbartsch/359289df766bea63e185b503f6fb0b9a to your computer and use it in GitHub Desktop.
Save pdbartsch/359289df766bea63e185b503f6fb0b9a to your computer and use it in GitHub Desktop.
import random
a = random.sample(range(1, 100), 15)
b = random.sample(range(1, 100), 25)
c = list(set(a).intersection(b))
print('a:', a, '\nb:', b, '\noverlap:',sorted(c))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment