Gjsify LogoGjsify Logo

Hierarchy

  • Random

Index

Constructors

  • Creates a new random number generator initialized with a random seed. This structure needs to be freed by the user with gegl_random_free();

    Returns Gegl.Random

Properties

name: string

Methods

  • float(x: number, y: number, z: number, n: number): number
  • Return a random floating point number in range 0.0 .. 1.0.

    Parameters

    • x: number

      x coordinate

    • y: number

      y coordinate

    • z: number

      z coordinate (mipmap level)

    • n: number

      number no (each x,y coordinate provides its own sequence of numbers

    Returns number

  • float_range(x: number, y: number, z: number, n: number, min: number, max: number): number
  • Return a random floating point number in the range specified, for the given x,y coordinates and GeglRandom provided, if multiple different numbers are needed pass in incrementing n's.

    Parameters

    • x: number

      x coordinate

    • y: number

      y coordinate

    • z: number

      z coordinate (mipmap level)

    • n: number

      number no (each x,y coordinate provides its own sequence of numbers

    • min: number

      minimum value

    • max: number

      maximum value

    Returns number

  • free(): void
  • int(x: number, y: number, z: number, n: number): number
  • Return a random integer number in range 0 .. MAX_UINT

    Parameters

    • x: number

      x coordinate

    • y: number

      y coordinate

    • z: number

      z coordinate (mipmap level)

    • n: number

      number no (each x,y coordinate provides its own sequence of numbers

    Returns number

  • int_range(x: number, y: number, z: number, n: number, min: number, max: number): number
  • Return a random integer point number in the range specified, for the given x,y coordinates and GeglRandom provided, if multiple different numbers are needed pass in incrementing n's.

    Parameters

    • x: number

      x coordinate

    • y: number

      y coordinate

    • z: number

      z coordinate (mipmap level)

    • n: number

      number no (each x,y coordinate provides its own sequence of numbers

    • min: number

      minimum value

    • max: number

      maximum value+1

    Returns number

  • set_seed(seed: number): void
  • Change the seed of an existing GeglRandom.

    Parameters

    • seed: number

      an integer seed, change for different permutation.

    Returns void

  • Creates a new random number generator initialized with a random seed. This structure needs to be freed by the user with gegl_random_free();

    Returns Gegl.Random

  • Return an opaque structure associated to the seed. This structure needs to be freed by the user with gegl_random_free();

    Parameters

    • seed: number

      an integer seed, change for different permutation.

    Returns Gegl.Random

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method