Android Application Development Tutorial - 31 - Where's the Fridge, that's Random

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
15,393
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 19, 2011

Check out the full series at http://www.thenewboston.com/

Here is a link to the mybringback YouTube Channel. Go and subscribe now!

http://www.youtube.com/user/mybringback

Also, the mybringback official website:

http://mybringback.com/

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • Its 255! not 265!

  • A random sized and colored "WTF!!!!!!" text is surprisingly amusing. I'm spamming the Try Command button completely entertained.

see all

All Comments (28)

Sign In or Sign Up now to post a comment!
  • @NikkexD It's quite alright!

  • @XdrummerXboy Yes, you're correct. I noticed that a few tutorials ahead. Sorry about that!

  • @NikkexD I looked at the API or whatever, it says the range is [0, n)

    notice the square bracket vs the parenth. It includes the 0, but goes till one integer before n.

  • @XdrummerXboy No i think it counts the last number, so 255 would be correct i believe.

  • Lol, amusing idd!

  • so it would be

    crazy.nextInt(256)

    to give you values of 0 through 255, inclusive, correct?

  • When defining the text size, is it still converted as e. g. 5dp?

  • Woahps up guys?!

  • I see I'm not the first one tell about 255... ok : )

  • @pi3dr oh ok! i learned something, my apologizes im just very used to hearing 256 but i understand now.

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