• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    Math question (for javascript?)

    How To... ?
    2
    4
    1127
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Armando
      Armando Beta Gold last edited by

      Hi to math enthusiasts from a math dumb...

      I have a problem I can't solve. In order my patch to work à need 4 random integers ranging from 1 to 15 to change every minute, but I need those 4 integers to be all different between them. I can't find a solution in Isadora. That's my attempt. Anyone has an idea? Maybe javascript?
      Thanks
      Armando

      Armando Menicacci
      www.armandomenicacci.net
      www.studiosit.ca

      Macbook pro 16 inches 2022 64 GB RAM, M1 MAX. OS 13 Ventura

      1 Reply Last reply Reply Quote 0
      • Armando
        Armando Beta Gold last edited by

        Solved!!!

         Thanks izzy!!

        d3735f-nonredundant-4-parts-shuffle.izz


        Armando Menicacci
        www.armandomenicacci.net
        www.studiosit.ca

        Macbook pro 16 inches 2022 64 GB RAM, M1 MAX. OS 13 Ventura

        1 Reply Last reply Reply Quote 0
        • G
          gavspav Beta Silver last edited by

          I thought I'd try the javascript actor but unfortunately my first attempt looped for ever and I hadn't saved it!

          So I thought I'd try again using the internet and stack overflow came up with an answer!
          Try copy and pasting this into a javascript actor (make sure it has 4 outputs. You can trigger it with a bang). var arr = [] while(arr.length < 8){ var randomnumber=Math.ceil(Math.random()*100) var found=false; for(var i=0;i

          http://www.digitalfunfair.co.uk I'm using M1 MBP 14" mostly but sometimes use older Mac & Windows machines.

          1 Reply Last reply Reply Quote 0
          • Armando
            Armando Beta Gold last edited by

            Thanks I'll test it as soon as I have time


            Armando Menicacci
            www.armandomenicacci.net
            www.studiosit.ca

            Macbook pro 16 inches 2022 64 GB RAM, M1 MAX. OS 13 Ventura

            1 Reply Last reply Reply Quote 0
            • First post
              Last post