import java.security.SecureRandom;

public class Example
{
    public static void main(String[] args) throws Exception
    {
        SecureRandom rand = SecureRandom.getInstanceStrong();

        System.out.println("about to call nextInt()");
        int randInt = rand.nextInt(29);
        System.out.println("got " + randInt);
    }
} 