<commit_before>#include <iostream>
#include "lotto.h"

using namespace std;
/* So I guess I should use arrays? Seems like quite good idea, hopefully it'll work as intended.
 * Also I'm still not sure how to avoid duplicates...
*/

void lotto::lotek(){
    for(int i = 0; i < 6; i++) {
        int a = rand()%49+1;
        cout << '\t' << a << " " << endl;
    }
}

void lotto::multilotek() {
    for(int i = 0; i < 20; i++) {
        int a = rand()%80+1;
        cout << a << endl;
    }
}

void lotto::simpleMenu() {
    cout << "Bardzo prosty program używający generator liczb pseudolosowych.\n" << endl;
    cout << "1. Lotto (bez plusa i innych super szans)\n2. Multi multi (bez plusa i super szansy)\n3. Koniec (kończy program)" << endl;
}
<commit_msg>Add changes to first option<commit_after>#include <iostream>
#include "lotto.h"

using namespace std;
/* So I guess I should use arrays? Seems like quite good idea, hopefully it'll work as intended.
 * Also I'm still not sure how to avoid duplicates...
*/

void lotto::lotek(){
   int lotteryPool[50];
   for(int x = 0; x < 50; x++) {
       lotteryPool[x] = x + 1;
   }
   srand (time(NULL));
   int random;
   int y = 0;
   while(y < 6) {
       random = rand()%50;
       if(lotteryPool[random] != 0) {
           cout << lotteryPool[random] << " ";
           lotteryPool[random] = 0;
           y++;
       }
   }

}

void lotto::multilotek() {
    for(int i = 0; i < 20; i++) {
        int a = rand()%80+1;
        cout << a << endl;
    }
}

void lotto::simpleMenu() {
    cout << "Bardzo prosty program używający generator liczb pseudolosowych.\n" << endl;
    cout << "1. Lotto (bez plusa i innych super szans)\n2. Multi multi (bez plusa i super szansy)\n3. Koniec (kończy program)" << endl;
}

{'fraction_non_alphanumeric': 0.1534090909090909, 'fraction_numerical': 0.019886363636363636, 'mean_word_length': 2.6086065573770494, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1611692', 'n_tokens_mistral': 657, 'n_tokens_neox': 631, 'n_words': 206}