Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord