fix 公共方法

This commit is contained in:
dy 2023-12-28 18:19:40 +08:00
parent 6a0a158fba
commit 566c3aeb7b

View File

@ -233,7 +233,7 @@ export function ctor() {
}
Array.prototype.random = function (this: Array<any>) {
return this[PublicShared.randomNum(0, this.length)];
return this[PublicShared.randomNum(0, this.length - 1)];
};
Array.prototype.intersection = function (this: Array<any>, other: Array<any>) {