Init perm rewrite

fixes #1321 
@Breznak I tried but NupicRandom doesn't have the "choice()" method so I can't use it until someone implements "choice". *hint* *hint*. :-)

David

Sent from my iPhone

> On Sep 25, 2014, at 3:51 PM, breznak <notifications@github.com> wrote:
> 
> In tests/unit/py2/nupic/research/spatial_pooler_unit_test.py:
> 
> > @@ -145,11 +145,10 @@ def testExactOutput(self):
> >      
> >      Previously output varied between platforms (OSX/Linux etc)
> >      '''
> > -    
> > -    expectedOutput = [10, 29, 110, 114, 210, 221, 253, 260, 289, 340, 393,
> > -                      408, 473, 503, 534, 639, 680, 712, 739, 791, 905, 912,
> > -                      961, 1048, 1086, 1131, 1173, 1210, 1223, 1261, 1276,
> > -                      1285, 1302, 1617, 1679, 1712, 1721, 1780, 1920, 1951]
> > +    expectedOutput = [62, 69, 118, 138, 156, 249, 285, 309, 389, 456, 498, 608, 
> > +                      626, 628, 650, 694, 730, 753, 754, 994, 1091, 1140, 1142, 
> > +                      1200, 1241, 1313, 1368, 1421, 1479, 1583, 1611, 1633, 1654, 
> > +                      1681, 1731, 1743, 1757, 1811, 1849, 1936]
> @cogmission this is probably the reason your compatibility test fails - use NupicRandom as random and don't change these values and you should be fine.
> 
> —
> Reply to this email directly or view it on GitHub.