Hi I need some help for my program and I don't know how to start. I want to create a program which generates 6 numbers from a range of 1 to 49. How can you create that?
Also,is it possible to generate numbers which don't repeat?
All I know is that you have to use the rand() function:
Code:
rand()%(49+1-1)+1
I have found a code but unfortunately that is in c++
💯 Lottery 6/49 C++ | Code Playground
Is it possible to convert that code to C?