title: Django - Creating a link that maps to multiple different pages?
body: <p>I'm new to coding and I'm trying to create a link using Django (if possible) that sends the user to three different urls with equal probability of being to redirected to each one. Thus there is only one button to select but it can have three different results. </p>
  
  <p>I would like the link to simply be a bootstrap nav bar button. So far I have the following code that works just fine for a single basic html (surprise.html) url that I created:</p>
  
  <p>Relevant code in:</p>
  
  <p>Views:</p>
  
  <pre><code>def surprise(request):
      return render(request, 'sitepages/surprise.html') 
  </code></pre>
  
  <p>Templates:</p>
  
  <pre><code>&lt;a class="nav-item nav-link" href="{% url 'surprise' %}"&gt;Surprise&lt;/a&gt;
  </code></pre>
  
  <p>urls.py:</p>
  
  <pre><code>url(r'^surprise/', sitepages.views.surprise, name="surprise"),
  </code></pre>
  
  <p>So this will redirect to a basic internal html page. But I was wondering if it's possible to add another href to the template code? </p>
  
  <p>Perhaps a new model would be necessary? I was thinking of using random.choice with three different urls in the list but it seems they need to be in str type and this is beyond me. </p>
  
  <p>Any suggestions or tips would be greatly appreciated. 
  Thank You!</p>