Perlin noise from a seed

I am remaking Factorio in Snap! and need a script to generate Perlin Noise from a seed but I don't know how.
Could I have some help making a custom block or finding a project with it?

Maybe this will help

No, it needs to support a seed input.

perhaps you can use a seeded rng generator?

here's an implementation of xorshift32 along with example usage:
untitled script pic (1)
the number in the generator constructor is the starting seed. if left empty, it will use the current time in milliseconds. calling the generator returns a decimal in the range of [0..1]