title: Converting Histogram Values to Int Array in Python
body: <p>everyone. I created an histogram with by using an array with a size of 1x1000 and its values range from 0 to 99. I want to store histograms values as an int array. However, when I run the program I got the following results for the program(the numeric values are different for everyone since its random): </p>
  
  <blockquote>
    <p>(array([ 93., 101., 119.,  91.,  97., 110., 102., 111.,  85.,  91.]), array([ 0. ,  9.9, 19.8, 29.7, 39.6, 49.5, 59.4, 69.3, 79.2, 89.1, 99. ]), )</p>
  </blockquote>
  
  <p>I want to get a result like this:</p>
  
  <blockquote>
    <p>[ 93 101 119 91 97 110 102 111 85 91]</p>
  </blockquote>
  
  <p>Can you help? Also what kind of array I am getting as a result? It doesn't look like anything I have ever seen before</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  
  x = np.random.randint(100, size=1000)   
  y = plt.hist(x,10)  
  
  print(y)
  </code></pre>