Javascript Tutorial - 22 - Basic Math Objects
Uploader Comments (thenewboston)
All Comments (47)
-
@B1KMusic intresting well im too used to vb so that is why i use wired syntax here any way in vb best way to randomize a number is to creat an object of the "random" class and with that randomize a varible so its like (if you know vb): Dim a As Integer Dim b As New Random a = b.Next(1, 200)
and 1 is the lower number
and 200 is the higher number
so that is why i love vb its good for making programs that you need to make fast for practical uses
-
var num1 = (Math.random())
if (num1<= 1) alert ("number is not int");
-
its funny that you mentioned game, i was thinking im never using random but you mentioned game... -_- lol
-
View my channel to find a link to my web development blog! I made it to get my ideas out and shows you how to do it. give it a look and make one and blog with me! we can start a little community of bloggers and share ideas! see you soon!
-
var i=0
while(i<=1000){document.write(
Math.round(Math.random()));i++ } -
deal
-
here is a full html and javascript calculator code mikelsblog.co.cc/calculator.tx
t -
@sudhanwaaaaa no , really?
ur site is down
Snazzydog333 3 years ago
im working on all of my websites right now to redesign them all. they should be up in a couple weeks.
thenewboston 3 years ago
what program are you usin?
elitegrim 3 years ago
notepad++
just go to google and type it in and you can download it there. its free and its the best editor that's out there!
thenewboston 3 years ago