title: 1 to 100 odd numbers in array
body: <p>Is there any cool way in Ruby to create an array with 1 to 100 with only odd entries (1, 3 etc). I now have a loop for this but that is obviously not a cool way to do it! Any suggestions?</p>
  
  <p>My current code:</p>
  
  <pre><code>def create_1_to_100_odd_array
      array = [1]
      i = 3
      while i &lt; 100
          array.push i
          i += 2
      end
  
      array
  end
  </code></pre>
  
  <p>Thanks in advance</p>