func name fix

This commit is contained in:
Laetitia (O-01-67) 2022-11-12 15:13:40 -05:00 committed by GitHub
parent 88faa9c871
commit bbba5aa808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
function randomChoice(array) {
if(array.length === 0) { throw new Error(`The array ${array} is empty`) };
var length = array.length;
var randomIndex = randomNumberFromZeroToValue(length - 1);
var randomIndex = randomIntegerFromZeroToValue(length - 1);
return array[randomIndex];
};