problem with a switch function

problem with a switch function

Hi all:

I have a function which returns randomly either 6, 7 8 or 9.
Then there's a switch function which does different things for each number.
Problem is, connecting the random results to the switch function.

Currently, Firefox is saying "unreachable code after return statement", but I don't understand how FF's problem with "code after a return statement" applies.

Here's the code:
  1. function fastLine1() {
  2. var poss  = [7,7,7,8,8,8,6,9]
  3. result = Math.floor(Math.random() * poss.length); return poss[result];
  4. var m = 7
  5. var n = 8
  6. var p = 6
  7. var q = 9
  8. var r = (m + n + p + q)
  9. switch(r) {
  10.            case 6:
  11.            hideFast('fast1'); hideWen2('D1'); yin6();  return false;
  12.        break
  13.   case 7:
  14.   hideFast('fast1'); hideWen2('D1'); yang7(); return false;
  15.       break
  16. case 8:
  17. hideFast('fast1'); hideWen2('C1'); yin8();  return false;
  18.       break
  19. default:
  20. hideFast('fast1'); hideWen2('C1'); yang9(); return false; }
  21. }
  22. There are more functions in each case, what's above is there to show each case is well-formed.