Code example for Random

Methods: nextLong

0
		return null; 
	} 
 
	@Override 
	public String execute(Connection<?> connection) {
		return Long.toString(rand.nextLong());
	} 
 
	public boolean isSignedIn(HttpServletRequest request, HttpServletResponse response) {
 
		boolean retVal = false;
		String userId = userCookieGenerator.readCookieValue(request);
		if (isValidId(userId)) {
 
			if (isConnectedFacebookUser(userId)) {
				retVal = true;
			} else { 
				userCookieGenerator.removeCookie(response);
			} 
		}