So i want to get random number from 200 to 400 so I obviously go for srand(time(0)) and then (rand() % 400) + 200and i Do it the the begining of main. Every time i run program the value is by small amount larger then previous one (and that doesnt really feel random), i think it has something to do with seeding it with time, but if i do same thing which is (rand() % 400) + 200 in main SFML loop it gives me random results. Any clue how to fix this?
Btw. forgive me If i do some stupid mistake im quite fresh to coding
Aucun commentaire:
Enregistrer un commentaire