Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.xflea.guessthenote;
- import java.util.Random;
- public class Randy {
- public static int randomino() {
- final int[] notes = new int[] { R.raw.s_a, R.raw.s_b, R.raw.s_c, R.raw.s_d, R.raw.s_e, R.raw.s_f, R.raw.s_g };
- Random rand = new Random();
- int n = rand.nextInt(notes.length);
- return notes[n];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement