Se utilizan estos Datos a=7 , c=15, m=16


In [3]:
from aleatorio import *
import matplotlib.pylab as plt

N = 1000

semilla = 7
a = 7
c = 15
m = 16

z = Conmix(semilla,a,c,m,N)

rangoos= np.zeros(10)


for iterator in range(N):
    for i in range(1,11):
        
        div = float(i)/float(10)       
        
        if(z[iterator]< div and  z[iterator]>= (div-0.1)):
            rangoos[i-1] = rangoos[i-1]+1

rango =np.arange(0,1,0.1)

plt.axes((0.1, 0.2, 0.8, 0.6))  
plt.bar(np.arange(10), rangoos)  
plt.ylim(0,max(rangoos)+100)  
plt.title('Histograma2')
plt.xticks(np.arange(10),rango) 
plt.show()

In [ ]: