building skeleton of line.c
randomize can now handle input of any size