diff --git a/Chapter12/Chap12-1.js b/Chapter12/Chap12-1.js index 2413207..1fdad10 100644 --- a/Chapter12/Chap12-1.js +++ b/Chapter12/Chap12-1.js @@ -16,7 +16,7 @@ function CArray(numElements) { function setData() { for (var i = 0; i < this.numElements; ++i) { this.dataStore[i] = Math.floor(Math.random() * - (this.numElements+1)); + this.numElements) + 1; } }