Android Application Development Tutorial - 31 - Where's the Fridge, that's Random
Loading...
15,393
Loading...
Top Comments
see all
All Comments (28)
-
@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...
Its 255! not 265!
pi3dr 6 months ago 69
A random sized and colored "WTF!!!!!!" text is surprisingly amusing. I'm spamming the Try Command button completely entertained.
SharpAceX 6 months ago 25