for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
/*
* Copyright 2014, Armenak Grigoryan, and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package com.strider.datadefender.extensions;
import com.strider.datadefender.anonymizer.functions.Core;
import static java.lang.Math.random;
import static java.lang.Math.round;
import static java.lang.String.valueOf;
/**
* @author Armenak Grigoryan
public class ExtensionExample extends Core {
* Generates random 9-digit student number
* @return String
public String randomStudentNumber() {
return valueOf(round(random() * 100000000));
}