xcrld Posted October 13, 2016 Report Share Posted October 13, 2016 Inca sunt la stadiul de invatare asa ca luati-ma usor. Quote loadGameScene: function (scene) { $("#gameContent").hide(); $("#headerBalls").hide(); $("#sceneText").hide(); var ball = (Math.random() * 48 + 1).toFixed(0); $("#sceneB").attr('class','SceneBila'+ball); var id = scene.substring(5,7); $("#sceneText").attr("src",$("#imgFolder").html()+"/scene"+id+".png"); $("#sceneText").attr("style","right: 2600px;"); $("#scena").show(); $("#sceneText").animate({right: "-=1800px"}, 3000); }, Am inteles ca functia math.random nu e asa de "random" cum se crede, iar numerele se pot prezice. Cum pot face asta? Nu am nevoie sa fiu 100% accuarate. Quote Link to comment Share on other sites More sharing options...
Byte-ul Posted October 14, 2016 Report Share Posted October 14, 2016 http://lmgtfy.com/?q=predicting+java+math.random Quote Link to comment Share on other sites More sharing options...
xcrld Posted October 14, 2016 Author Report Share Posted October 14, 2016 3 hours ago, Byte-ul said: http://lmgtfy.com/?q=predicting+java+math.random Am facut si eu asta inainte sa postez, dar nu am gasit nimic concret. Sunt dispus sa dau bani. Quote Link to comment Share on other sites More sharing options...
Hertz Posted October 14, 2016 Report Share Posted October 14, 2016 https://jazzy.id.au/2010/09/22/cracking_random_number_generators_part_3.html https://github.com/altf4/untwister Quote Link to comment Share on other sites More sharing options...