mercredi 29 avril 2015

Standard Seed for random values from MATLAB to Python

Is there a simple way to translate this code from MATLAB to Python.

MATLAB

rand('twister',sum(100*clock));

Using the numpy module I should have something like this:

Python

import numpy as np
np.random.seed(value)

But how can I calculate value?




Aucun commentaire:

Enregistrer un commentaire