Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Really i need help with creating a Integer number. I feel ParseInt should do this but isn't. I know i've gone wrong somewhere at line 8 i think. Although i do think line 11 is right haha.
Thanks for any help guys.
Steven Parker228,096 Points
Here's some hints:
- Math.random() doesn't require an argument, and any given will be ignored
- Math.random() generates a non-integer value between 0 and 1
- a common way to get random integers is to multiply by a range and then use Math.floor
What is an argument and what is a range?
That is very useful! I will print that out, Thank you.
It's mid August now and i still can't get it. I can't ever seem to remember it all? If its in the exam can i research it online (serious question?)
So how do i go about getting ready for exam should the time come? (I have it in mind to learn as much as possible first). I haven't seen any information on this, that's why i'm not sure.
I don't know. I'm finding it hard to get information