title: Generated random number VHDL
body: <p>I need to generate random binary numbers of 13 bits in a test_bench . Then, when the start signal is set to 1 , generates a random num_bin . Why in my code it is not generated ? I mean, it generates 0000000000000 , when should generate a 13-bit number either . What can be wrong? Thank You</p>
  <p>Note : num_bin input is a number that I have to give it in another process .</p>
  <pre><code>  .
    .
    .
   reset &lt;= '1', '0' after 75 ns;
   inicio &lt;='0', '1' after 100 ns;
  
   process
   variable seed1 :integer ;
   variable seed2 :integer ;
   variable re1 : integer;
   variable re2 : real ;
   begin  
  
      if inicio = '1' then
      uniform (seed1,seed2,re2);
      re1 := integer (re2 * real(2**13 -1));  
     num_bin &lt;= std_logic_vector ( to_unsigned (re1,13));
      end if;
   wait;
   end process;
  </code></pre>