fix random function
fix random function
coding rectangle drawing