I have a list of publications in firebase,
I am developing an algorithm to obtain a random number and with the power to request an object from lst_publications to firebase, my random algorithm tells me what position (number) of the object is the one I should request, therefore I do not know which key has this object, there is some way to get this data only with the position,
Example
const randomIndex = Math.floor(Math.random() * count);
const refPublicaciones = vm.rootRef.child('publicaciones/lst_publicaciones')
refPublicaciones.objeto(2).on('value', objeto => {
console.log(objeto.val());
})
Is there something like that? Greetings.