Skip to content

Instantly share code, notes, and snippets.

@shawn42
Created October 12, 2009 23:15
Show Gist options
  • Save shawn42/208830 to your computer and use it in GitHub Desktop.
Save shawn42/208830 to your computer and use it in GitHub Desktop.
@delay = 5
while @delay > 0.2
# spawn
puts "sleeping #{@delay}"
sleep @delay
@delay *= (1-rand)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment