Skip to content

Instantly share code, notes, and snippets.

@turugina
Created May 20, 2011 06:53
Show Gist options
  • Save turugina/982470 to your computer and use it in GitHub Desktop.
Save turugina/982470 to your computer and use it in GitHub Desktop.
import System.Threading
rnd = System.Random()
data = (rnd.Next(100) for i in range(100))
for t in (Thread({Thread.Sleep(i*100); print i}) for i in data):
t.Start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment