Show random string
<p>i am trying to display a random string each time a button is pressed from a set of strings defined in strings.xml . this is an example of the strings ID's</p>

<pre><code>&lt;string name="q0"&gt;
    &lt;string name="q1"&gt;
    &lt;string name="q2"&gt;
    &lt;string name="q3"&gt;
    &lt;string name="q4"&gt;
</code></pre>

<p>java code for getting a random string.</p>

<pre><code>private static final Random rgenerator = null;

    int RandomQ = R.string.q0  (rgenerator.nextInt(5) + 1);
    String q = getString(RandomQ);
</code></pre>

<p>if i try to use this java code i get an error at "q0" in R.string.q0  which is <code>The method q0(int) is undefined for the type R.string</code> if i try to use the quick fix and create a method, it works. but it wont let me save or run the app because it replaces my create method and shows this message </p>

<pre><code>R.java was modified manually! Reverting to generated version!
</code></pre>

<p>thanks for reading.</p>
