You can control that shared random number generator using rng. | Puede controlar ese generador de números aleatorios compartidos mediante rng. |
You can call rng with no inputs to see what seed it actually used. | Puede llamar a rng sin entradas para ver qué semilla usó realmente. |
All three depend on a single shared random number generator that you can control using rng. | Los tres dependen de un solo generador de números aleatorios compartidos que usted puede controlar usando rng. |
If possible, you should update any existing code that uses the old syntax to use rng instead. | Si es posible, debe actualizar cualquier código existente que utilice la sintaxis antigua para utilizar rng en su lugar. |
If you call rng with a seed before creating the input data, it reseeds the random number generator. | Si se llama a rng con una semilla antes de crear los datos de entrada, se resiembra el generador de números aleatorios. |
Open Live Script This example shows how to use the rng function, which provides control over random number generation. | En este ejemplo se muestra cómo utilizar la función rng, que proporciona control sobre la generación de números aleatorios. |
Always use the rng function (rather than the rand or randn functions) to specify the settings of the random number generator. | Utilice siempre la función rng (en lugar de las funciones rand o randn) para especificar la configuración del generador de números aleatorios. |
The two tools are complementary, with rng providing a much simpler and concise syntax that is built on top of the flexibility of RandStream. | Las dos herramientas son complementarias, con rng proporcionando una sintaxis mucho más simple y concisa que se construye encima de la flexibilidad de RandStream. |
While there are situations when you might want to specify a generator type, rng affords you the simplicity of not having to specify it. | Si bien hay situaciones en las que puede quiero especificar un tipo de generador, rng le ofrece la simplicidad de no tener para especificarlo. |
Bear in mind that if you use 'shuffle', you may want to save the seed that rng created so that you can repeat your calculations later on. | Tenga en cuenta que si utiliza 'shuffle', es posible que desee guardar la semilla que rng creó para que pueda repetir sus cálculos más adelante. |
