Mercurial > octave-nkf
comparison src/DLD-FUNCTIONS/rand.cc @ 8871:fb1c929dbbb7
tests vs. 64-bit indexing
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 25 Feb 2009 12:56:36 -0500 |
parents | 8463d1a2e544 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8870:eea0e1b45ec0 | 8871:fb1c929dbbb7 |
---|---|
383 | 383 |
384 retval = do_rand (args, nargin, "rand"); | 384 retval = do_rand (args, nargin, "rand"); |
385 | 385 |
386 return retval; | 386 return retval; |
387 } | 387 } |
388 | |
389 // FIXME -- The old generator (selected when "seed" is set) will not | |
390 // work properly if compiled to use 64-bit integers. | |
388 | 391 |
389 /* | 392 /* |
390 %!test # 'state' can be a scalar | 393 %!test # 'state' can be a scalar |
391 %! rand('state',12); x = rand(1,4); | 394 %! rand('state',12); x = rand(1,4); |
392 %! rand('state',12); y = rand(1,4); | 395 %! rand('state',12); y = rand(1,4); |