* <BAEL-1209>[Harihar] Code for RMI java. http://jira.baeldung.com/browse/BAEL-1209 * <BAEL-1209>[Harihar] Use specific exception declaration
11 lines
245 B
Java
11 lines
245 B
Java
package org.baeldung;
|
|
|
|
import java.rmi.RemoteException;
|
|
|
|
public class RandomNumberGeneratorEngine implements RandomNumberGenerator {
|
|
@Override
|
|
public int get() throws RemoteException {
|
|
return (int) (100 * Math.random());
|
|
}
|
|
}
|