Subdomain Posts
Lisp | 4 days ago
Lisp | 4 days ago
Lisp | 4 days ago
Lisp | 4 days ago
Lisp | 4 days ago
None | 5 days ago
None | 23 days ago
Scheme | 139 days ago
Lisp | 151 days ago
Lisp | 162 days ago
Recent Posts
HTML | 4 sec ago
Linden Scripting | 7 sec ago
Haskell | 9 sec ago
None | 17 sec ago
Haskell | 23 sec ago
None | 39 sec ago
None | 57 sec ago
None | 1 min ago
Ruby | 1 min ago
None | 1 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Anonymous on the 2nd of Nov 2009 11:11:29 PM Download | Raw | Embed | Report
  1. (define (random-element lst)
  2.   (let loop ((lst (cdr lst))
  3.              (cur (car lst))
  4.              (n 1))
  5.     (cond ((null? lst) cur)
  6.           ((< (random 1.0) (/ 1 n)) (loop (cdr lst) (car lst) (1+ n)))
  7.           (else (loop (cdr lst) cur (1+ n))))))
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: