{"action":"closed","issue":{"url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/333","labels_url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/333/comments","events_url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/333/events","html_url":"https://github.com/IIC2233-2015-2/syllabus/issues/333","id":111992803,"number":333,"title":"Incendios","user":{"login":"djpassi","id":13721150,"avatar_url":"https://avatars.githubusercontent.com/u/13721150?v=3","gravatar_id":"","url":"https://api.github.com/users/djpassi","html_url":"https://github.com/djpassi","followers_url":"https://api.github.com/users/djpassi/followers","following_url":"https://api.github.com/users/djpassi/following{/other_user}","gists_url":"https://api.github.com/users/djpassi/gists{/gist_id}","starred_url":"https://api.github.com/users/djpassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djpassi/subscriptions","organizations_url":"https://api.github.com/users/djpassi/orgs","repos_url":"https://api.github.com/users/djpassi/repos","events_url":"https://api.github.com/users/djpassi/events{/privacy}","received_events_url":"https://api.github.com/users/djpassi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/labels/Tarea%204","name":"Tarea 4","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-18T00:39:15Z","updated_at":"2015-10-20T18:38:29Z","closed_at":"2015-10-20T18:38:29Z","body":"No se explica bien el tema del peso de los incendios, hay dos posibilidades de abordarlo:\r\n\r\n1. Primero encontrar el tiempo del proximo incendio, luego ver de que material sera la casa que se quemara (random 0 a 23) y luego determinar random cual de esas casas se quema.\r\n\r\n2. Primero encontrar el tiempo del proximo incendio, luego tirar un random entre 0 y la suma del peso de todas las casas y esa casa en especifico se quema?\r\n\r\nCreo que apuntan a que lo hagamos de la forma 2, pero si se ve desde el punto de vista de los grandes numeros, todas las casas tendrian el mismo peso probabilistico....\r\n\r\n2/1000 casi igual a 10/1000\r\n\r\nGracias!!"}}