random - Questions about set.seed() in R -
i understand set.seed()
, when might use it, still have many questions function. here few:
- is possible "reset"
set.seed()
"more random" if have calledset.seed()
earlier in session? necessary? - is possible view seed r using?
- is there way make
set.seed()
allow alphanumeric seeds, way 1 can enter them @ random.org (be sure in advanced mode, , see "part 3" of form see mean)?
just fun:
set.seed.alpha <- function(x) { require("digest") hexval <- paste0("0x",digest(x,"crc32")) intval <- type.convert(hexval) %% .machine$integer.max set.seed(intval) }
so can do:
set.seed.alpha("hello world")
(in fact x
can r object, not alphanumeric string)
Comments
Post a Comment