04_class/die.cpp
void Die::roll()
{
	std::srand(time(NULL));
	roll_value = (std::rand()%6) + 1;
}
/*
Create a Die class function code to model a game die with 6 sides
and values 1,2,3,4,5, and 6.

public roll function returns a number from 1 to 6(search C++ random function)
*/
Create a Die class function code to model a game die with 6 sides
and values 1,2,3,4,5, and 6.

public roll function returns a number from 1 to 6(search C++ random function)
Create a Die class function code to model a game die with 6 sides and values 1 2 3 4 5 and 6 . public roll function returns a number from 1 to 6 ( search C ++ random function )
void Die::roll()
{
	std::srand(time(NULL));
	roll_value = (std::rand()%6) + 1;
}
void Die :: roll ( ) { std :: srand ( time ( NULL ) ) ; roll_value = ( std :: rand ( ) % 6 ) + 1 ; }
Create a Die class function code to model a game die with 6 sides
and values 1,2,3,4,5, and 6.
Create a Die class function code to model a game die with 6 sides and values 1 2 3 4 5 and 6 .