Skip to content

_srandom

bergsma edited this page Sep 26, 2014 · 5 revisions

#srandom

###Seed the random number generator.

Syntax

status = srandom seed ;

Arguments

  1. int seed

A integer seed. The timestamp() function is a good seed source.

Return Value

str status
  • $ACKNOWLEDGE : The seed was set.

The STATUS variable is set to $ACKNOWLEDGE

str status
  • $ACKNOWLEDGE : The seed was set.

The STATUS variable is set to $ACKNOWLEDGE

Exceptions

  • %ARGUMENT: Invalid arguments. Usage: status = srandom seed ;

Description

  • None

Examples

puts "Create an example for the function 'srandom'" ;

Related Links

random

Clone this wiki locally