I want to choose a function randomly. This is the following code:
public class Thank_you_five implements RandomInterface
{
public static void Thankyou_five(){...}
}
public class Thank_you_four implements RandomInterface
{
public static void Thankyou_four(){...}
}
public class Thank_you_three implements RandomInterface
{
public static void Thankyou_three(){...}
}
public interface RandomInterface
{
public static void Thankyou_five();
public static void Thankyou_four();
public static void Thankyou_three();
}
So my goal here is to pick a function randomly, like in python we random.choose() and some function inside, I want to achieve the same with Java
Please help.
Thanks, Adrija