title: random numbers generation from 0 to 0.5
body: <p>can we generate random numbers for floating point numbers if I use this function it is showing</p>
  
  <pre><code>randi([0 0.5])
  </code></pre>
  
  <p>Error using randi
  First input must be a positive scalar integer value IMAX, or two integer values [IMIN IMAX] with
  IMIN less than or equal to IMAX.</p>
  
  <p>is there any solution or we should write our own code for random numbers generation</p>