My html sample code is,

```
 <div class="list">
    <div class="dropdown">
        <ul role="menu">
            <li class="rsbListItem">one</li>
            <li class="rsbListItem">two</li>
            <li class="rsbListItem">three</li>
            <li class="rsbListItem">four</li>
            <li class="rsbListItem">five</li>
            <li class="rsbListItem">six</li>
            <li class="rsbListItem">seven</li>
            <li class="rsbListItem">eight</li>
        </ul>
    </div>
</div>

```

How can i write Selenium scripts for this, and each time when i run it should select randomly.

I have tried to pick random elements,but it's selecting the same element each time. Here is my code.

```
List<WebElement> options = driver.findElements(By.xpath("//*[@role='menu']"));
Random rand = new Random();
int list= rand.nextInt(options.size());
options.get(list).click();

```