JavaScript Javascript and Captivate javascript captivate 2017,captivate javascript commands,captivate javascript examples,captivate

I am trying to create a game for fun in Captivate. The game will mimic a wheel of fortune or spin the wheel format.

I am trying to put a different spin on it, and not have any repeating numbers.

Here is what I have so far:

 function getRandomInt (min, max) {
var jsRandomNumber = Math.floor (Math.random () * (max - min + 1)) + min;

    if(jsRandomNumber==1){
      window.cpAPIInterface.setVariableValue('cpCmndGotoSlide', 1);
    }else if (jsRandomNumber==2){
      window.cpAPIInterface.setVariableValue('cpCmndGotoSlide', 2);
    }else if (jsRandomNumber==3){
      window.cpAPIInterface.setVariableValue('cpCmndGotoSlide', 3);
    }else if (jsRandomNumber==4){
      window.cpAPIInterface.setVariableValue('cpCmndGotoSlide', 4);
    }else if (jsRandomNumber==5){
      window.cpAPIInterface.setVariableValue('cpCmndGotoSlide', 5);
    }else if (jsRandomNumber==6){
      window.cpAPIInterface.setVariableValue('cpCmndGotoSlide', 6);
    }else if (jsRandomNumber==7){
      window.cpAPIInterface.setVariableValue('cpCmndGotoSlide', 7);
    }else if (jsRandomNumber==8){
      window.cpAPIInterface.setVariableValue('cpCmndGotoSlide', 8);
    }


}

getRandomInt(1,8);

I don't understand how to prevent repetitive numbers. I also can assign values in Captivate if a slide has been viewed, however I don't understand how to skip that slide if the random number is generated. Any help is greatly appreciated.

Answer:1

I'm trying to create a number field (.item_adults) that multiply it self and print the value into a class="item_price". To do that I create some of this: <div class="bookSection"> <input ...

I'm trying to create a number field (.item_adults) that multiply it self and print the value into a class="item_price". To do that I create some of this: <div class="bookSection"> <input ...

In javascript can we check nth character is a number using regular expressions without just using if conditions?

In javascript can we check nth character is a number using regular expressions without just using if conditions?

  1. check char string java
  2. check char string javascript
  3. check char string python
  4. check string char c++
  5. char check string
  6. check char in string php
  7. check char in string js
  8. check char in string jquery
  9. check char in string sql
  10. check if char string is empty
  11. check char in string bash
  12. check last char string c#
  13. check char in string swift
  14. check char in string vba
  15. check char in string vb.net
  16. check char in string delphi
  17. check char in string matlab
  18. check char in string online
  19. check char in string oracle
  20. check char empty string

I have a key (s) that I want to press in order to create a keyboard event which would be a sound that I have linked in my file. The sound src is correct, and from what I know, so is my JavaScript. Is ...

I have a key (s) that I want to press in order to create a keyboard event which would be a sound that I have linked in my file. The sound src is correct, and from what I know, so is my JavaScript. Is ...

  1. does audio play through hdmi
  2. does audio play through displayport
  3. audio doesn't play in chrome
  4. audio does not play in after effects
  5. audio doesn't play in powerpoint
  6. hdmi doesn't play audio
  7. audio does not play through speakers
  8. what does audio play mean
  9. does audio cd play in car
  10. audio file does not play in powerpoint
  11. youtube audio doesn't play

I have a component built with es6 class syntax. It's a simple component with just a diverse and some styling. Then, on the parent component (called app), I'd like to render that component and give it ...

I have a component built with es6 class syntax. It's a simple component with just a diverse and some styling. Then, on the parent component (called app), I'd like to render that component and give it ...

  1. react component does not rerender on props change
  2. react component does not rerender on state change
  3. react component does not contain a default export
  4. react component does not update on state change
  5. react component does not rerender
  6. react component does not update
  7. react component does not render
  8. react component does not mount
  9. react component doesn't unmount
  10. react component doesn't update on props change
  11. react component does not rerender after setstate
  12. react component does not contain an export named
  13. react child component does not update
  14. react redux component does not update
  15. react router component does not render
  16. react redux component does not rerender
  17. react when does component unmount
  18. react when does component rerender
  19. react when does component render
  20. react when does component update