e_setSeed: Set internal seed

Description Usage Arguments Details Author(s) Examples

Description

This utility sets the internal random seed used by mixer.

Usage

1
setSeed( seed = 1 )

Arguments

seed

sets the seed of the internal random generator in the mixer C/C++ libraries (integer value).

Details

Sets the seed of the random generator (srand) in the C standard library. This random generator is used inside the mixer initialization stage. This function is useful to generate exactly the same initial conditions before two mixer runs.

Author(s)

G. Grasseau

Examples

1
2
3
4
5
6
7
8
9
graph.affiliation(n=100,c(1/3,1/3,1/3),0.8,0.2)->g
setSeed(777)
mixer(g$x,qmin=2,qmax=6)->xout
## Not run: plot(xout)

# Produce strictly the same result
setSeed(777)
mixer(g$x,qmin=2,qmax=6)->xout
## Not run: plot(xout)

mixer documentation built on Feb. 21, 2018, 1:02 a.m.

Related to e_setSeed in mixer...