Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/General
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1556/Source/MathLib/Functions/General
Modified Files:
rand.java
Log Message:
added support for ND-arrays
Index: rand.java
===================================================================
RCS file: /cvsroot/mathlib/mathlib/Source/MathLib/Functions/General/rand.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** rand.java 8 Jan 2007 18:59:05 -0000 1.12
--- rand.java 9 Jan 2007 19:08:06 -0000 1.13
***************
*** 30,34 ****
// get requested dimension
! dim[i] = (int)((NumberToken)operands[i]).getValueRe(0);
}
--- 30,38 ----
// get requested dimension
! dim[i] = (int)((NumberToken)operands[i]).getValueRe();
!
! if (dim[i]<0)
! throwMathLibException("rand: dimension <0");
!
}
|