/** Delete the data of the specified index in the array **/array. prototype. deleteat = function (INDEX) {If (index <0) {return this;} return this. slice (0, index ). concat (this. slice (index + 1, this. length);}/** shuffling array **/array. prototype. random = function () {var temparr = [], Me = This, T; while (Me. length> 0) {T = math. floor (math. random () * me. length); temparr [temparr. length] = me [T]; me = me. deleteat (t);} return temparr;} array. pro Totype. orderrandom = function () {return this. Sort (function () {return math. Random ()> 0.5? "-1": "1";});}/** number array sorting **/array. Prototype. sortnum = function (I) {If (! I) {I = 0;} if (I = 1) {return this. sort (function (a, B) {return B-A;});} return this. sort (function (a, B) {return a-B;}) ;}/ ** get the sequence entry in the number array **/array. prototype. getmax = function () {return this. sortnum (1) [0];}/** get the minimum entry in the number array **/array. prototype. getmin = function () {return this. sortnum (0) [0];}/** the first time the specified element position appears in the array **/array. prototype. indexof = function (o) {for (VAR I = 0; I <this. length; I ++) {If (this [I] = O) {return I ;}} return-1 ;}/ ** remove repeated items in the array **/array. prototype. arrunique = function () {var reset = [], done ={}; for (VAR I = 0; I <this. length; I ++) {var temp = This [I]; If (! Done [temp]) {done [temp] = true; reset. Push (temp) ;}return reset ;}