generating function arguments in java
<p>I'm very new to java and am working on my first Android app. I am using the webview demo as a template. I am trying to generate a random integer between 1 and 12 and then call a certain javascript function based on the result. Here's what I have:</p>

<pre><code>int number = 1 + (int)(Math.random() * ((12 - 1) + 1));
number = (int) Math.floor(number);
String nextQuote = "javascript:wave" + number + "()";
mWebView.loadUrl(nextQuote);
</code></pre>

<p>So <code>mWebView.loadUrl(nextQuote)</code> will be the same as something like <code>mWebView.loadUrl("javascript:wave1()")</code></p>

<p>I just want to know if what I have here is correct and will work the way I think it will. The application isn't responding as expected and I suspect this bit of code is the culprit. </p>
