Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics (Retired) Creating Reusable Code with Functions Random Number Challenge Solution

Here is my solution:

2 Answers

You can't share your workspace this way. This is what I see:

Wrong way to share treehouse workspace

Link like https://teamtreehouse.com/workspaces/6631602 is your private repository link. One and only working way is to share snapshot: take a snapshot, share the link http://w.trhou.se/aBcDeF123

Right way to share treehouse workspace

Hi Daniel!

Thanks for informing me about this. How about this one https://w.trhou.se/7uu17xy4la. Is this one viewable?

It's viewable.

It's working solution. I cant remember the challenge, but what if you put something like:

generateRandomNumberWithinRange(0,0);
generateRandomNumberWithinRange(100,100);

Haven't thought of that. I will try that one. Thanks Daniel!