Skip to content
Snippets Groups Projects
Commit ab0cfe78 authored by thierrychambert's avatar thierrychambert
Browse files

pop_project : changed set-seed formula for finer precision

parent 63e10382
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ pop_project <- function(fatalities,
}
# Sample a seed for RNG
seed <- ((((Sys.time() %>% as.numeric) %% 1e5) * 1e5) %% 1e5) %>% round
seed <- ((((Sys.time() %>% as.numeric) %% 1e10) * 1e9) %% 1e5) %>% round
#runif(1, 0, 1e6)
## Projection : apply the LESLIE matrix calculation forward
......
......@@ -89,7 +89,7 @@ pop_project_cumulated_impacts <- function(fatalities,
}
# Sample a seed for RNG
seed <- runif(1, 0, 1e6)
seed <- ((((Sys.time() %>% as.numeric) %% 1e10) * 1e9) %% 1e5) %>% round
## Projection : apply the LESLIE matrix calculation forward
# Scenario 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment