Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: [Feature Request] Random function for foo_skip (Read 2260 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Feature Request] Random function for foo_skip

Hello to everyone,
i look everything, and rand() don't work from foo_skip query, and i don't found a compatible plugin that enable some random function, or a similar function that give me the posibility to make some real random query.
I try with crc32() and test everything varabile, and nothing it's real random because all depends from the single track that you will to play, and i need some external (like system date), or can make rand() function works in that query.

If someone find an answer, i can help to make some good querys for prefer some song's (by rating or similar), just i want to made... but today, it was imposible.

Thanks,
Facundo

[Feature Request] Random function for foo_skip

Reply #1
I added support for $rand() function in the latest version. For example to skip about one out of three tracks you can use query "$mod($rand(),3) IS 0".