# JavaScript question - impossible for me, should be easy for you techies

**URL:** <https://boards.straightdope.com/t/javascript-question-impossible-for-me-should-be-easy-for-you-techies/27430>\
**Category:** Factual Questions\
**Created:** [July 30, 2000, 11:01am UTC](https://boards.straightdope.com/t/javascript-question-impossible-for-me-should-be-easy-for-you-techies/27430 "2000-07-30T11:01:07Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![matt\_mcl](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@matt\_mcl](https://boards.straightdope.com/u/matt_mcl)\
**Post date:** [July 31, 2000, 7:51am UTC](https://boards.straightdope.com/t/javascript-question-impossible-for-me-should-be-easy-for-you-techies/27430/21 "2000-07-31T07:51:49Z")

</div>

> [@](#):
>
> Try tossing it into a loop that prints it out 30 or 40 times, see if it’s your imagination, or if certain numbers seem to show up more.

How do I do this?

---

<div class="post-metadata">

**Author:** ![Kyberneticist](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@Kyberneticist](https://boards.straightdope.com/u/Kyberneticist)\
**Post date:** [July 31, 2000, 9:15am UTC](https://boards.straightdope.com/t/javascript-question-impossible-for-me-should-be-easy-for-you-techies/27430/22 "2000-07-31T09:15:40Z")

</div>

for(i=0; i\<30; i++)  
{  
quoteindex=Math.floor(Math.random()\*120);  
document.write(“Random value “+i+”: “+quoteindex+”\<br\>”);  
}

---

<div class="post-metadata">

**Author:** ![matt\_mcl](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@matt\_mcl](https://boards.straightdope.com/u/matt_mcl)\
**Post date:** [July 31, 2000, 9:35am UTC](https://boards.straightdope.com/t/javascript-question-impossible-for-me-should-be-easy-for-you-techies/27430/23 "2000-07-31T09:35:26Z")

</div>

Hokay, and where do I put this?

[Previous page](https://boards.straightdope.com/t/javascript-question-impossible-for-me-should-be-easy-for-you-techies/27430.md?page=1)
