Learn R Programming

NetSim (version 0.9)

utils: General utility functions

Description

General utility functions to read and manipulate the random number generator by setting and reading the random seed. This assures reproducibility of simulation results.

Usage

reset_random_seed(seed) get_random_seed()

Arguments

seed
Random number seed, a positive integer

Examples

Run this code
	reset_random_seed(12)
	get_random_seed()

Run the code above in your browser using DataLab