Package jason.stdlib

Class set_random_seed

All Implemented Interfaces:
InternalAction, Serializable

@Manual(literal="math.set_random_seed(seed)", hint="generates a random number between 0 and 1", argsHint="sets the seed of Jason\'s random number generator", argsType="number", examples=".set_random_seed(20): sets the random number generator\'s seed to 20", seeAlso={"jason.functions.Random","jason.stdlib.random"}) public class set_random_seed extends DefaultInternalAction

Internal action: .set_random_seed(N).

Description: sets the seed of Jason's random number generator

Parameter:

  • - seed (number): the value to which the random seed is to be set

Example:

  • .set_random_seed(20): Sets the random number generator's seed to 20.
See Also: