in the below CSS code I want to make the size of square random which I can do with Math.random() property of Javascript but I don't know how to use it to specify size in css.
#square {
width: 100px;
height: 100px;
background: red;
}
here in place of width and height specified I want it random. Also I want the coordinates/orientation of square to be random . It is different from generating random numbers . generating random numbers is a part of solving this but not the complete solution.