Added GPL license. Made function for random sequences.