[Python] Random seed in python and julia

Discussão em 'Python' iniciado por Stack, Abril 7, 2025.

  1. Stack

    Stack Membro Participativo

    I wonder how to get the same random number both in python 3.11 and julia 0.6. For example, I did np.random.seed(19) in python yielding array([[-0.01123535], [ 0.00729311], [-0.01646583]]) and in julia with srand(19) yielding 3×1 Array{Float64,2}: 0.0941242 -0.0143886 0.039502. Both results aren't the same even the random seeds are 19.

    Continue reading...

Compartilhe esta Página