Compare commits

...

2 Commits

Author SHA1 Message Date
dy
cc6aad7223 Merge remote-tracking branch 'origin/bugfix' into bugfix 2023-12-28 18:19:52 +08:00
dy
566c3aeb7b fix 公共方法 2023-12-28 18:19:40 +08:00

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>) {