Seeded random doesnt work

I have downloaded a seeded rng extension Seeded RNG Extension GDevelop - Pastebin.com and it dosent work for me. Can some one tell me why is that?

I think there’s a bug in the javascript. To fix it, edit the extension:

  1. Click on SeededRandom in the extension list
  2. In the tab that opens up, select the RandomInRange function:
  3. Replace the javascript text with:
function random(max) {
    if (max <= 0) {
        return 0;
    }

    return Math.floor(runtimeScene.rng.getRNG(eventsFunctionContext.getArgument("rngname")).random() * (max + 1));
}

let min = eventsFunctionContext.getArgument("min")
let max = eventsFunctionContext.getArgument("max")
eventsFunctionContext.returnValue = min + random(max - min); // return min if min >= max