Variable value is determined by function call
<p>This is probably weird but I would like to declare a variable without a fixed value, but "linked" in some way to the result of a function. The goal is for the end user to manipulate a variable, but each time the variable's value is used, its value may change.</p>

<p>This is the current result I get:</p>

<pre><code>from random import randint

def randomfun():
    return randint(1, 100)

an_int = randomfun
print an_int    # Print the function object
print an_int()  # Print the result of randomfun()
</code></pre>

<p>What I would like to get is <code>print an_int</code> to actually call <code>randomfun()</code>, but without having to add the parenthesis, and the type of <code>an_int</code> should be <code>randomfun</code>'s return type.</p>
