PASO 4: Tim responderá al usuario con una de cuatro respuestas. Usaremos un número aleatorio para elegir qué respuesta.

Recuerde, un entero aleatorio toma dos argumentos numéricos y genera un número aleatorio entre ellos.

  • En la pestaña LÓGICA, abra y arrastre Random Integer .
  • también de arrastre Variable Display . Suéltelo en la parte inferior de su programa.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)