title: Python : creating an array, weighed by sine function
body: <p>I can create an array of 100 <strong>evenly spaced numbers</strong> from 0 to 30 by doing -</p>
  
  <pre><code>theta = linspace(0,30,100)
  </code></pre>
  
  <p>Is it possible to get an array of 100 numbers from 0 to 30, which is not evenly spaced, but weighed by their sine function??</p>
  
  <p><strong>EXPLANATION:</strong> Here is a picture to give you a <strong>vague</strong> idea of what I want. The <code>theta</code> that I have defined, selects the points evenly (like the first picture). I want the array to be weighed with their sine function. As the numbers increase from 0 to 30, their sine(value) increases, so in my array I want to pick the higher numbers more frequently (like the second picture) -</p>
  
  <p><img src="https://i.stack.imgur.com/VDe79.png" alt="enter image description here"></p>