Added: 3 years ago
From: thenewboston
Views: 25,205
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (47)

Sign In or Sign Up now to post a comment!
  • @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");

  • Comment removed

  • 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

  • whole numbers can be negative!!!!

  • @sudhanwaaaaa no , really?

  • wholw numbers can be negative!!!!

  • buddy! im dissapointed, i found the rounding one, finally. but im tryina do this with a variable. N it doesnt work like that for some reason with variables. please make a new vid? sfe

  • i can't believe you are doing all this for free :O im going to college soon for an I.T course and im sure this will help :) also what is your job and do you have any qualifications as you are so good :)

  • where can you find all the built in strings

  • Hey Bucky are you still around? i note your videos are about 2 years old. Just wanted to know how you're keeping.

  • looks lik there are newer videos too.. shall i follow this one or skip and jump to that one, MASTER!

  • excellent tutorials, by far the best i've seen on here...

  • Comment removed

  • random is my favorite function .. it can be useful in many things!!

  • you get asked about notepad++ in almost every video! lol

  • @jamesmattking1 so true...even i was wondering about this thing..notepad++ has taken stakes over javascripts ..i guess:P

  • random.. does the pokemon games use this? LoL i use the random to get the numbers to be used in lottery. LoL

  • Lulz, whole numbers can be negative? O'really?

    Okay, whole numbers can't. You must have meant integers.

  • What is the equivalent of Notepad++ in Linux?

    Thanks for your videos! They are very handy.

    Cheers

  • very good

  • all these tutorials are the fuckin shit, youve helped me in my school classes by simplifyin it, thanks a bunch man, by the way u got any tutorials on using the date object cheers.

  • two empty _parameters_ ???????!?!?!?!

    "When I use a word, it means what I want it to mean" - Humpty Dumpty

  • u hav the best tutorials!!! c++, java, javascript....and im sure u hav html, css, asp, php tutorials too.

  • Nice One. Bring on the advanced code.

  • Your website isn't working. Just some text and digg, yahoo and google

  • thenewboston

    can you type your web address please

  • how to subscribe to your site ?

    on teh link in "info" is just some silly survival video :D

  • What if you want the randomly generated number to be an integer? Do you have to generate a random fraction and then round it? Or is there a simpler way?

    Also, how can you specify that you want it to be a certain length or certain number of decimal places?

  • the nuber of Math.random() is always a decimal number between 0 and +1. To have a number between 0 and +1000 you multiply it. Let's say you want it in a variable

    var num1 = Math.random()*1000

    To get rid of the excess decimal you can now round them off:

    var num1 = Math.round(Math.random()*1000)

    and to make this a decimal number between 0 and +10 you just divide it by 100

    var num1 = Math.round(Math.random()*1000)­/100

  • thank u very much u r really good instructor

  • is it possable to pick a random number between numbers EX) pick a number between 1 and 10

  • ur site is down

  • im working on all of my websites right now to redesign them all. they should be up in a couple weeks.

  • what program are you usin?

  • 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!

  • thank you so much dude

  • is it better than komodo?

  • much

  • @thenewboston Maybe best free editor, but dreamweaver is so better. I use it.

  • there sure is you have to add the boundaries in the parameters, ill show you in the next tutorial!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more