https://github.com/avicted/lottomultithreaded
OpenMP Lotto
https://github.com/avicted/lottomultithreaded
c openmp
Last synced: about 1 month ago
JSON representation
OpenMP Lotto
- Host: GitHub
- URL: https://github.com/avicted/lottomultithreaded
- Owner: Avicted
- License: mit
- Created: 2022-07-04T16:16:40.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-04T16:17:41.000Z (almost 4 years ago)
- Last Synced: 2025-07-05T04:05:08.924Z (12 months ago)
- Topics: c, openmp
- Language: C++
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Play the lottery with all threads!
The program generates 7 random numbers in the range of 1-49, no duplicates. Using OMP the main while loop is parallellized. Statistics is printed to stdout every 100000 attempt. Feel free to modify the code.
Change the user_numbers[7] to your numbers.