Tool/software: TI C/C++ Compiler
Recently I have purchased the MSP-EXP432P401R (Red Board). I am attempting to code a program that enables random variables. I have one semester of experience using the MSP-432 which wasn't very helpful in the since that the labs weren't too rigorous. I simply want to have random variables to mimic the rapid change of human glucose. This is some code I have started off the top of the head, as I cannot find any examples of coding using this board. Just need a lemon, and i assure you I can make the lemonade!
* main.c
*/
int x_arr[10]={74,120,60,180,300,250,170,190,55,100,175,245,145}; //an array of random values of gluclose
int main(void)
{
for(i=1; i<14; i++) //for loop chooses value at random from initial array
{
output=x_arr[i]; //outputs values in array
WDT_A->CTL = WDT_A_CTL_PW | WDT_A_CTL_HOLD; // stop watchdog timer
}