# IScriptFactory.random [← IScriptFactory](index.md) · [← Master](../../wiki.md) random(double max) double Generate a random number between 0 and the given max value (but not including the maximum value). --- random(double min, double max) double Generate a random number between the given min value and the given max value (but not including the maximum value). --- random(double min, double max, long seed) double Generate a random number between the given min value and the given max value (but not including the maximum value) with given seed.