# Help with randomizing list

**URL:** <https://forum.kirupa.com/t/help-with-randomizing-list/169331>\
**Category:** Uncategorized\
**Created:** [November 15, 2005, 2:37pm UTC](https://forum.kirupa.com/t/help-with-randomizing-list/169331 "2005-11-15T14:37:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fiCti0naL](https://avatars.discourse-cdn.com/v4/letter/f/8491ac/32.png) [@fiCti0naL](https://forum.kirupa.com/u/fiCti0naL)\
**Post date:** [November 15, 2005, 2:37pm UTC](https://forum.kirupa.com/t/help-with-randomizing-list/169331/1 "2005-11-15T14:37:43Z")

</div>

What would be the best way to randomize a custom course list I have created entered into a list box? The data is being added using :

```auto

// Adds 7 items, with data values, to the list
listBox.addItem("ID", "<b>title of class</b><br>Description of class.<i>credits</i>");
listBox.addItem("ID1", "<b>title of class</b><br>Description of class.<i>credits</i>"); 
listBox.addItem("ID2", "<b>title of class</b><br>Description of class.<i>credits</i>"); 
listBox.addItem("ID3", "<b>title of class</b><br>Description of class.<i>credits</i>"); 
listBox.addItem("ID4", "<b>title of class</b><br>Description of class.<i>credits</i>"); 
listBox.addItem("ID5", "<b>title of class</b><br>Description of class.<i>credits</i>"); 
listBox.addItem("ID6", "<b>title of class</b><br>Description of class.<i>credits</i>"); 

```
