Write a c++ program using arrays
Make a c++ program using arrays
use strand() to seed the pseudorandom sequence, the use rand() to get the next pseudorandom number;
#include <cstdlib>
#include <ctime>
...
strand(time(NULL)); // seeds the sequence
...
roll1 = rand() % 6 + 1; // yields numbers between
// 1 and 6
10 years ago 20
Answer(1)
Purchase the answer to view it
NOT RATED
Bids(0)