I am creating a game called Simon Says in C++ and want to be able to hit the space bar and display 5 random images that i have already loaded to my game. And every time i hit the space bar i want the images to be in a different order than the previous time therefore i need to be able to have a command to randomly display the 5 different images once i hit the space bar. Here is the code i have to display the images in a set order:
if(key_down(VK_SPACE))
{
clear_screen();
a();
refresh_screen();
delay(1000);
clear_screen();
b();
refresh_screen();
delay(1000);
clear_screen();
e();
refresh_screen();
delay(1000);
clear_screen();
d();
refresh_screen();
delay(1000);
clear_screen();
g();
refresh_screen();
delay(1000);
clear_screen();
c();
refresh_screen();
delay(1000);
clear_screen();
refresh_screen();
}