title: Pass parameters between flask @app.route('/page')
body: <p>I am trying to pass the value i get from Random() to Help() but it returns as AttributeError: 'NoneType' object has no attribute 'app'.</p>
  
  <pre><code>from flask import Flask, request, render_template
  from random import randint
  
  @app.route('/help')
  def Help(Random):
     PassingRandom = Random
  
     return render_template("help.html", PassingRandom=PassingRandom)
  
  def Random():
     Value = randint(0,100)
     return Value
  
  MyValue = Random()
  
  if __name__ == "__main__":
     Help(MyValue)
     app.run(debug=True)
  </code></pre>
  
  <p>Is their a way within flask to pass in the parameter without returning the error, preferably without using globals. </p>