Compare commits
2 Commits
8a69a4fc1e
...
cc6aad7223
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cc6aad7223 | ||
![]() |
566c3aeb7b |
@ -233,7 +233,7 @@ export function ctor() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Array.prototype.random = function (this: Array<any>) {
|
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>) {
|
Array.prototype.intersection = function (this: Array<any>, other: Array<any>) {
|
||||||
|
Loading…
Reference in New Issue
Block a user