Dann geht auch Richis code^^.

Code:
function song_startup()
{
var song = 0;
var media = 0;
if(key_f1 == 1)
{
song = integer(random(3)); //song zwischen 0 und 2
}
while(1)
{
if(key_f1 == 1)
{
song = integer(random(3)); //song zwischen 0 und 2
}
if(song == 0)
{
media = media_play("another excuse - soulwax.mp3",NULL,550);
}
if(song == 1)
{
media = media_play("rise to the challenge - AsianDubF.mp3",NULL,550);
}
if(song == 2)
{
media = media_play("Here we go - Broken Dolls.mp3",NULL,550);
}
wait(1);
while(media_playing(media)) wait(1); //Warten, bis das Stück zuende ist...
}
}




Gamestudio: A7.82 Commercial/A8 Commercial
System specs (Laptop):
Windows 7 64bit
DirectX v10.1
Intel Core i7-720QM CPU @ 1,60 GHz
4GB DDR2 Ram
NVIDIA GeForce GT 230M (1024MB)