Random To/es: Difference between revisions

From StarLogo Nova Wiki
No edit summary
(Updating to match new version of source page)
Line 7: Line 7:
==Uso==
==Uso==
<p id="tooltip">{{Block|Aleatorio [_] a [_]}} define los límites superior e inferior de un rango a partir del cual se genera un número aleatorio. El número se genera entre e incluyendo los límites establecidos.</p>
<p id="tooltip">{{Block|Aleatorio [_] a [_]}} define los límites superior e inferior de un rango a partir del cual se genera un número aleatorio. El número se genera entre e incluyendo los límites establecidos.</p>
<div lang="en" dir="ltr" class="mw-content-ltr">
<section begin="name" />'''{{Block|random [_] to [_]}}'''<section end="name" /> is a [[code block]] part of the [[Math]] drawer.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Usage==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
{{Block|random [_] to [_]}} defines the upper and lower bounds of a range from which a random number is generated. The number is generated between and including the set limits.
</div>


==Sintaxis==
==Sintaxis==
Line 12: Line 24:


<!-- <code>Aleatorio [número] a [número]</code> -->
<!-- <code>Aleatorio [número] a [número]</code> -->


== Usos comunes ==
== Usos comunes ==
*The {{Block|Aleatorio [_] a [_]}} El bloque se usa más comúnmente para el movimiento aleatorio. Cuando se inserta en un [[Movements]] Bloque como el {{#vardefineecho:cedol|<code>[[Left By Degs|left by [_] degs</code>]]}} combinado con el{{#vardefineecho:cedol|<code>[[Forward|forward[_]</code>]]}} Bloquear, un agente vagará por todo [[Spaceland]] en una dirección aleatoria.   
*The {{Block|Aleatorio [_] a [_]}} El bloque se usa más comúnmente para el movimiento aleatorio. Cuando se inserta en un [[Movements]] Bloque como el {{#vardefineecho:cedol|<code>[[Left By Degs|left by [_] degs</code>]]}} combinado con el{{#vardefineecho:cedol|<code>[[Forward|forward[_]</code>]]}} Bloquear, un agente vagará por todo [[Spaceland]] en una dirección aleatoria.   
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:random_to_example.gif|alt=Random To example gif|thumb]]
[[File:random_to_example.png|alt=Random To example code|thumb]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
One of the most common uses of the ‘random to’ block is for random movement. As shown above, creating a random turn, and combining that with a [[Special:MyLanguage/Forward|forward]] block, allows an agent to wander throughout spaceland in a random direction.
</div> 


==Bloques relacionados==
==Bloques relacionados==

Revision as of 16:55, 14 August 2023

Other languages:
The random to block

random [_] to [_] es un bloque de código parte de Matemáticas cajón.

Uso

Aleatorio [_] a [_] define los límites superior e inferior de un rango a partir del cual se genera un número aleatorio. El número se genera entre e incluyendo los límites establecidos.

random [_] to [_] is a code block part of the Math drawer.

Usage

random [_] to [_] defines the upper and lower bounds of a range from which a random number is generated. The number is generated between and including the set limits.

Sintaxis

The Random to Block


Usos comunes

  • The Aleatorio [_] a [_] El bloque se usa más comúnmente para el movimiento aleatorio. Cuando se inserta en un Movements Bloque como el left by [_] degs combinado con elforward[_] Bloquear, un agente vagará por todo Spaceland en una dirección aleatoria.

Example

One of the most common uses of the ‘random to’ block is for random movement. As shown above, creating a random turn, and combining that with a forward block, allows an agent to wander throughout spaceland in a random direction.

Bloques relacionados