Random Line + Moving Circle

Index: drawing random line;
Index1: moving circle reflecting from borders.