Skip to content

Instantly share code, notes, and snippets.

@ricardosiri68
Last active December 16, 2015 11:38
Show Gist options
  • Save ricardosiri68/5428541 to your computer and use it in GitHub Desktop.
Save ricardosiri68/5428541 to your computer and use it in GitHub Desktop.
import random
def rec(n):
if n<2:
return 1
else:
n=random.random()
return n*rec(n)
numf=rec(3)
print numf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment