set_julia_seed <- function(rng){
#' Set a global seed in the current Julia session
#' @param rng An integer that controls the random number generation
#' @export
JuliaConnectoR::juliaEval('using Random')
rng_char <- paste0("Random.MersenneTwister(", rng, ")")
JuliaConnectoR::juliaEval(rng_char)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.