Random function

i was thinking something like this:

Random rand = new Random();
upperLimit = 4;
icnt = rand.nextInt(upperLimit);

switch (icnt)
{
   	case 0:
		WebUI.click(findTestObject('Inbox'))
		break;
	case 1:
		WebUI.click(findTestObject('LC 4/27'))
		break;
	case 2:
		WebUI.click(findTestObject('DC 2/13'))
		break;
	case 3:
		WebUI.click(findTestObject('BG 1/5'))
		break;
	default:
		WebUI.comment("Whoops")
		break;
}