Answer:
Answered below
Step-by-step explanation:
//Program is written in Java programming language
Class RegularPolygon{
int sides = 0;
int length = 0;
}
public void randomize(RegularPolygon polygon){
int randomSides = (int) 10 + (Math.random() * 20);
double randomLength = 5 + (Math.random() * 11);
polygon.sides = randomSides;
polygon.length = randomLength;
}