Hello I have a question that I have been searching for for a while and I can’t get it : I’ve written a normal JavaScript function in the cloud script revision and called it at the beginning of the file the normal way( no handlers ) then I returned its value with a handler function so that the client can access it ... this function is supposed to run only one time when I deploy the cloud script but what happens is that every time I call the function that returns the value .... the value changes .... it means the function runs with every log in how come ?
--- what I wanna kame I want to generate a list of random numbers and all the clients can access that list but that list always changes with each run or build
ex:
var NumbersList =[];
GenerateNumbers();
function GenerateNumbers(){
// update NumbersList randomly
}
handlers.ReturnNumbersList(){
return NumbersList; // this return diiferent list each time
}