how to include a 'probability' when coding.
Mostrar comentarios más antiguos
I wanted to include the concept of 'probability' when coding. For example, giving me a reward of +1 only 60% of the time. How do in incorporate this '60 %' idea?
1 comentario
Jonas
el 22 de Abr. de 2021
you could generate a random number between 1 and 10 and add 1 if your random number is <=6
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Environments en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!