I made a Music Script that chooses random songs from the table and plays them, some songs are played and then get replayed again. How do you make it more random?
--Scripted by iiHeroAviator
local MusicList = {'319758951','310948899','272156573','254913653','320512903','338431940','359207189','142762345','243372213','377436683','298199818'} --Add Music IDs here.
--DO NOT EDIT BELOW IF YOU DONT UNDERSTAND THE SCRIPT BELOW.--
local mr = math.random
local sound = workspace:WaitForChild('InGameMusic')
while true do
sound:Stop()
local randomSong = MusicList[mr(1, #MusicList)]
local msg = workspace.InGameMusic:WaitForChild('SongPlaying')
local msg2 = script.NewSongIn
wait(.5)
sound.SoundId = 'rbxassetid://'..randomSong
sound:Play()
msg.Value = 'Now Playing: '..game:GetService('MarketplaceService'):GetProductInfo(randomSong).Name..' ('..randomSong..')'
print('[MUSIC SCRIPT] Now Playing: '..randomSong..'.')
for i = 5,0,-1 do
msg2.Value = 'Choosing song in: '..math.floor(i/60) .. ":" .. ("0"..(i % 60)):sub(-2)
wait(1)
end
end

5 comments
What do you mean by "more random"? If you're picking songs truly randomly, they will get re-played twice in a row fairly often.
https://scriptinghelpers.org/questions/35236/mathrandom-isnt-random-question#37769
@ScriptGuider wow sneaky self advertisement
By "more random" I mean like.... I don't want the same thing to be chosen constantly, I want ALL the songs to be played without it replaying again. And after they are all played, then it will play them all over again.
Try this: https://scriptinghelpers.org/questions/30074/how-do-i-make-this-script-make-a-random-selection-but-different-random-selection#33450