Randomizer Script



  • Would really appreciate it if someone could write a script for sample map combo-box randomization.

    Here's a snippet of my existing code. I have no idea how to do this 😞

    HiseSnippet 1372.3oc4X80aaaCDmxNrs1qoncnOrWFffQGfCVWfc96FJFpqcRJBVcigcZw.1FJXjoc3pDoFEUV7J52o8Qn6k9z9vzuAa2QIaI25kY0s0NroGjHu+we2wiGO6dZkGOJRoINUNdRHm3bU5fIRyocNkIjjC2i3bMZWVjgqcSH0dRHKJhOj33T99HAmJqPrOu5tsY9LoGOiDg7Xkvi+.QfvjQMr0WI78OfMjerHHmza05POkrixWEC3oLsAIj48T1X9CYnXknDmKs+PgQoGXXFdDwYk1pgSFbp5GkIx+XQj3DeNNoIY.XnDxGn7GhHFGS5bpveXuo9cDg3P6kEEJmDEtIsqXnXF8rnw0sLbyzHe7vozEAulukvyIG7VIAd2fNvSKBMYbPr8AzCkvF0HFrEjGVIxRJ0nDsiBjPZVOf8T9AZXxLMpuSiF21c6FMV6NqVc0pvFQjw8Ll1c.KHzmqa59kt1Li0GyMozpW6ArI.qZnNYZjPDje5pAZzQEDpjvj505DbxBUKxZz.VXDp62TCF0r1scwuaj9cyzuak9c6zu6j9c2ZeGXxDqudDGVLggGDAbyY70+dkPVu12Jqs1ZyIMBWsxuCy2+DHwqdBmNsQoDRegj6NJV5YDJo6Td08RT51fK3GyWa0pOa0ptvyzv159J1vjIcYgo1DiHGBH6X94l5VT77YVVIenxvORVespOqZkpOu5qyYznEwJE73txB3hGzzWfZ0kwAmv0S8hT4f7s4SnuzxkP6krumSPk7PovbTHOcdVJeyEjxSRSbfj+Ro.DD0XS8udZpOjPchps5bhXHl4OKohX8frhJWoE40Mw0RMQ6XiQIsFnBsOSNTE7FpCOO5v8XFFdPLEV.TC4Zi.iHN6wOCpvkbrrBcOdzSMpPKtSS3gn1Rh7ygRQNGCq3DbvO.CBXVZWFFZSjIN2hhGKphmIvWahu1BesM9ZG70tX7a1hSWBe97Y96KdTqIYNeuVhntp.vNLMP1oD4MKEAEDUCi8Yl4qRhWMjx.RzlqbDVxQFILSxe0QAJc1XgkNWXdzRB2aP6ILdmtX7VZA3ESL+GFuoWDsJc+Qi3dlLvtB8fu9s8Vm2Nn7wIP4CoCLZNKPHGmVbyhmqPSSeem1YPOM2VXU7S4D6EsZGCQK87T+4V1k5dApX4bqUpWzmGxYFXyepNu3ku7W+k98uuVEG95Z8p6ZSUNVCWP.Ah7LNRxgntIuO1QqhhFAti0VQ4Y0KVOFiUYT5yOiqilm1CiCfcdoj6GgEBbvxQQbbmV30kYzhyyKscUZbLyta+IzM1Z84eN6H30nOEG9EcrySToYwUYihqxlEWksJtJaWbU1o3pragTY10+IMwRm+75kWtKUA06wfDgbR1VLNmoQJyW1MmnyxDs.OWKyKngyK8dne3+9Kp+W+NnxKGb+SZYuxTLNPfaU6KOCpbATRt3YO9HVruYF07frqRpBOUIEdyWl.N1OdLWmG5Kzetmw.UoxnbyV849bVTtZi2p0Cf1ZY5bU+JZnn4xGJtnsqOhl.WWrxu6+MZcn7+6ac3hBcPKo1hWtvpqM+Kee9pTaceWr2j2WPsuJ1.8bL8deJzbv.ngHOd9VDJgscjLuANGAz.tbncxuAOoLaNseBjYyoLIdSME3aois+5GmxbIdygsiXenSE+7ozQPaWHjfa2Hy9k1faiQNf1.1Y7jJLI34Or2ptBudJHXBmivhNz67twoCXdZ0SR+k7nqeEKE.AR6+7TEZWbt6recHtYE.268DOO7T0m0jPVrFaTXM1rvZrUg0X6BqwNEVicKrFe9EnA1jw8hMpfjZr.gd6mjW5r+r7xxjeGnJXeV.


  • You can do it 🙂

    Use the Math.randInt() function to generate a random number which you can use as the index to an element of an array that contains the names of your sample maps.



  • It's like trying to speak Welsh (boyo) 😂 😂 😂 😂

    https://stackoverflow.com/questions/2450954/how-to-randomize-shuffle-a-javascript-array

    I appreciate you giving me a nudge though 😀


Log in to reply
 

2
Online

339
Users

1.0k
Topics

7.1k
Posts

Looks like your connection to Forum was lost, please wait while we try to reconnect.