πŸ€‘ Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! πŸš€start learning today!

🌟 Dreaming of a bright future? πŸŽ“ Ask about the Treehouse Scholarship program! πŸš€

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Arcee Palabrica
    Arcee Palabrica
    8,100 Points

    Code variations which one is more advisable to use...

    Posted July 20, 2017 12:32pm by Arcee Palabrica
    Arcee Palabrica
    8,100 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    2 Answers

  • Wejdan Al Mubarky
    PLUS
    Wejdan Al Mubarky
    Courses Plus Student 1,451 Points

    Emulator says" the app has stopped"

    Posted July 4, 2017 8:55pm by Wejdan Al Mubarky
    Wejdan Al Mubarky
    Courses Plus Student 1,451 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    4 Answers

  • Abhilakshay Dhiman
    Abhilakshay Dhiman
    425 Points

    my app stops.

    Posted June 29, 2017 7:40pm by Abhilakshay Dhiman
    Abhilakshay Dhiman
    425 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

  • Nyle Cohen
    Nyle Cohen
    448 Points

    "Fun Facts keeps stopping" error on my emulator

    Posted June 1, 2017 10:00am by Nyle Cohen
    Nyle Cohen
    448 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    6 Answers

  • Sara MΓΈrk
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Sara MΓΈrk
    Full Stack JavaScript Techdegree Student 2,838 Points

    Why can't I cast an int to a String? (From Building a Simple Android App: Generating a Random Number)

    Posted April 10, 2017 3:46pm by Sara MΓΈrk
    .a{fill-rule:evenodd;}techdegree
    Sara MΓΈrk
    Full Stack JavaScript Techdegree Student 2,838 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    2 Answers

  • jason pat
    jason pat
    201 Points

    Hi, I was kind of lost when you began talking about declaring variables and adding clicklistner for the button.

    Posted February 24, 2017 4:51am by jason pat
    jason pat
    201 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    2 Answers

  • Yusuf Mohamed
    Yusuf Mohamed
    2,631 Points

    It's showing the button in a weird way.

    Posted February 22, 2017 4:29pm by Yusuf Mohamed
    Yusuf Mohamed
    2,631 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

  • Mohammad Abdur Rahman
    Mohammad Abdur Rahman
    1,986 Points

    emulator & app not working

    Posted February 17, 2017 8:20pm by Mohammad Abdur Rahman
    Mohammad Abdur Rahman
    1,986 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    1 Answer

  • henriquegiuliani
    henriquegiuliani
    12,296 Points

    How to get the ripple effect back to the button?

    Posted January 16, 2017 12:02am by henriquegiuliani
    henriquegiuliani
    12,296 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

  • yadin michaeli
    PLUS
    yadin michaeli
    Courses Plus Student 5,423 Points

    fact = randomNumber im a little confused

    Posted October 27, 2016 4:18pm by yadin michaeli
    yadin michaeli
    Courses Plus Student 5,423 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    1 Answer

  • Rodrigo Reis
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Rodrigo Reis
    Full Stack JavaScript Techdegree Student 1,751 Points

    How to change the alignment?

    Posted October 9, 2016 10:03pm by Rodrigo Reis
    .a{fill-rule:evenodd;}techdegree
    Rodrigo Reis
    Full Stack JavaScript Techdegree Student 1,751 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

  • Larry Ostan
    Larry Ostan
    1,065 Points

    I want to generate a sequential array of string instead of random.

    Posted August 26, 2016 1:16pm by Larry Ostan
    Larry Ostan
    1,065 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    3 Answers

  • Steve McNutt
    Steve McNutt
    2,562 Points

    [SOLVED] - Can someone help me fix this bug in Generating a Random Number?

    Posted May 21, 2016 9:48pm by Steve McNutt
    Steve McNutt
    2,562 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

  • David Hume
    David Hume
    10,334 Points

    I'm getting this error when I try to run my code: Error:(35, 55) error: package randomGenerator does not exist

    Posted March 3, 2016 4:32pm by David Hume
    David Hume
    10,334 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    2 Answers

  • f4u57
    f4u57
    6,743 Points

    Random number showing codes not numbers

    Posted January 21, 2016 4:44am by f4u57
    f4u57
    6,743 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Generating a Random Number

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.