wgge 2.0.23 → 2.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -135,7 +135,7 @@ export default class Collection extends NodeWithEvents {
135
135
 
136
136
  random() {
137
137
  if (this.isEmpty()) return undefined;
138
- return this.get(ArrayHelper.randomIndex(this.count()-1));
138
+ return this.get(ArrayHelper.randomIndex(this.count()));
139
139
  }
140
140
 
141
141
  addOnRemoveListener(listener) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgge",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "description": "Web GL Game Engine",
5
5
  "main": "index.js",
6
6
  "devDependencies": {