This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for #100 - calculate random index for array
We want to get random tweet ID to retweet for indexing into the array data.statuses, so desired range for random number is [0..data.statuses.length-1] see function getRandomIntInclusive at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
- Loading branch information