CopyPastor

Detecting plagiarism made easy.

Score: 0.8044621848401595; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2022-12-23
by rx65m

Original Post

Original - Posted on 2022-12-22
by rx65m



            
Present in both answers; Present only in the new answer; Present only in the old answer;

This is the solution:
``` Random, rand1, 1, 4 Random, rand2, 1, 4 Random, rand3, 1, 4
; Definining 3 lists of text lines: list1 = ( 1st text-line 2nd text-line 3rd text-line 4th text-line ) list2 = ( 5th text-line 6th text-line 7th text-line 8th text-line ) list3 = ( 9th text-line 10th text-line 11th text-line 12th text-line )
; Selecting randomly one text-line from each list: selectedLine1 := strsplit(list1,"`n")[rand1] selectedLine2 := strsplit(list2,"`n")[rand2] selectedLine3 := strsplit(list3,"`n")[rand3]
; Concatenating the 3 selected text-lines and copy them to the clipboard: clipboard = %selectedLine1%`n%selectedLine2%`n%selectedLine3%
; Seeing the result on a message box: msgbox, Randoms: %rand1%, %rand2%, %rand3%`nSelected lines:`n%selectedLine1%`n%selectedLine2%`n%selectedLine3% ```

This solves the problem:
``` Random, rand1, 1, 4 Random, rand2, 1, 4 Random, rand3, 1, 4
; Definining 3 lists of text lines: list1 = 1st text line, 2nd text line, 3rd text line, 4th text line list2 = 5th text line, 6th text line, 7th text line, 8th text line list3 = 9th text line, 10th text line, 11th text line, 12th text line
; Selecting randomly one text line from each list: selectedLine1 := strsplit(list1,",")[rand1] selectedLine2 := strsplit(list2,",")[rand2] selectedLine3 := strsplit(list3,",")[rand3]
; Concatenating the 3 selected text lines and copy them to the clipboard: clipboard = %selectedLine1% `n %selectedLine2% `n %selectedLine3%
; Seeing the result on a message box: msgbox, Randoms: %rand1%, %rand2%, %rand3%`nSelected lines:`n%selectedLine1%`n%selectedLine2%`n%selectedLine3% ```

        
Present in both answers; Present only in the new answer; Present only in the old answer;