16] Create a library, complete with source file dice.cpp [2], header dice.h [2],
ID: 3790824 • Letter: 1
Question
16] Create a library, complete with source file dice.cpp [2], header dice.h [2], makefile Makefile [2], and a main code main.cpp [2]. The library should contain functions: [2] void di::seed(), which seeds the random number generator. [2] int di::random(int a, int b), which obtains a random number in range [a, b]. [4] int di::dice(int A, int X, int B) which obtains a random number by rolling the dice AdX+B. See the following article on dice notation for precisely what this means. Note that you must generate random numbers for all X dice. https://en.wikipedia.org/wiki/Dice_notation MUST BE IN C++ AND MUST BE THE ACTUAL CODE