Assignment #61 and Keep guessing

Code

///John Mulligan
///period 5
///Program Name: KeepGuessing
///File Name: KeepGuessing.java

import java.util.Scanner;

import java.util.Random;

public class KeepGuessing
{
    public static void main( String[] args )
    {
        Scanner numbot = new Scanner(System.in);
        Random r = new Random();
        
        System.out.println("I have randomly chosen a number between 1 and 10. Guess it!");
        int guess = numbot.nextInt();
        
        int actual = 1 + r.nextInt(10);
        
        while ( guess != actual )
        {
            System.out.println("Nope. Try again.");
            System.out.print("Your guess: ");
            guess = numbot.nextInt();
        }
        
        System.out.println("Ayy! You're a good guesser.");
    }
}