# Loading a random background at 100%

**URL:** <https://forum.kirupa.com/t/loading-a-random-background-at-100/42187>\
**Category:** Uncategorized\
**Created:** [February 6, 2004, 5:07am UTC](https://forum.kirupa.com/t/loading-a-random-background-at-100/42187 "2004-02-06T05:07:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xmattx](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xmattx](https://forum.kirupa.com/u/xmattx)\
**Post date:** [February 6, 2004, 5:07am UTC](https://forum.kirupa.com/t/loading-a-random-background-at-100/42187/1 "2004-02-06T05:07:01Z")

</div>

how would you go about doing this. (ex [http://hi-res.net](http://hi-res.net) )

I know how to do both indvidualy but i cant make it all work together!

any help would be apreciated :}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 7, 2004, 10:38pm UTC](https://forum.kirupa.com/t/loading-a-random-background-at-100/42187/2 "2004-02-07T22:38:32Z")

</div>

no help? ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 7, 2004, 11:17pm UTC](https://forum.kirupa.com/t/loading-a-random-background-at-100/42187/3 "2004-02-07T23:17:17Z")

</div>

no question, no help.  
doing what?  
what is “both”?  
where is there anything random there?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 8, 2004, 12:12am UTC](https://forum.kirupa.com/t/loading-a-random-background-at-100/42187/4 "2004-02-08T00:12:20Z")

</div>

this thread can get you started on the background thing…

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=36306](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=36306)

as for the random…why not use Math.random with a case/switch?
