Jump to content
xcrld

[JAVA] math.random

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...