Skip to contents

Generate Reproducible Random Seed

Usage

gen_repro_seed(base_string = "searchAnalyzeR")

Arguments

base_string

Base string for seed generation

Value

Integer seed value

Details

This function generates a reproducible seed based on a string input. It does not set the seed automatically - users should call set.seed() themselves if they want to use the generated seed.

Examples

# Generate a seed value
seed_value <- gen_repro_seed("my_analysis")

# User can choose to set it
# \donttest{
set.seed(seed_value)
sample(1:10, 3)
#> [1] 1 5 3
# }