You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
totally a random thought. what if we had a number for the start date (days since 1970) combined with the lat/long of the centroid as the seed to generate an alphanumeric code for the id number. that way independent iterations of firedpy would come up with the exact same id numbers for the same events.
totally a random thought. what if we had a number for the start date (days since 1970) combined with the lat/long of the centroid as the seed to generate an alphanumeric code for the id number. that way independent iterations of firedpy would come up with the exact same id numbers for the same events.
examplecode from R.
library(tidyverse)
days_from_1970 <- Sys.Date() %>% as.numeric
my_house <- c(40.019786, -105.266943)
set.seed(sum(days_from_1970, my_house))
stringi::stri_rand_strings(n = 1, length = 10)
[1] "KrSDx6y6oU"
set.seed(sum(days_from_1970, my_house))
stringi::stri_rand_strings(n = 1, length = 10)
[1] "KrSDx6y6oU"
The text was updated successfully, but these errors were encountered: