visualino icon indicating copy to clipboard operation
visualino copied to clipboard

Random block not random

Open RustyRyuu opened this issue 7 years ago • 0 comments

Hi I already reported a bug, but I found another one and I want to report it too. SYMPTOM: The random block always generates the lower number when trying to "flip a coin" (generate an aleatory between only 2 consecutive numbers) CLUES: If I try to generate random numbers between 3 or more numbers it works well FOUND: This problem may be generated because of the lack of a seed() call before the random() function.


Hola. Ya he reportado un bug pero he encontrado otro y quiero reportarlo también SÍNTOMA: El bloque random siempre genera el número más bajo cuando se intenta "lanzar una moneda" (generar un aleatorio entre sólo 2 números consecutivos) PISTAS: Si intento generar aleatorios entre 3 o más números, funciona bien ENCONTRADO: Este problema puede estar generado por la falta de un bloque seed() antes de la llamada a random():

Videocaptura de pantalla

RustyRyuu avatar May 14 '17 11:05 RustyRyuu