how to generate randome number in javacsirpt code example
Example: how to generate randome number in javacsirpt
js// Get a random number out of [10, 11, 12, 13]
random(10, 14);
// Get a random number from 1 to 100 (inclusive)
random(1, 101);
// Get a random number from -10 to 10 (inclusive)
random(-10, 11);// Get a random number out of [10, 11, 12, 13]random(10, 14);// Get a random number from 1 to 100 (inclusive)random(1, 101);// Get a random number from -10 to 10 (inclusive)random(-10, 11);
/**
* Reset the text fill color so that placeholder is visible
*/
.npm__react-simple-code-editor__textarea:empty {
-webkit-text-fill-color: inherit !important;
}
/**
* Hack to apply on some CSS on IE10 and IE11
*/
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
/**
* IE doesn't support '-webkit-text-fill-color'
* So we use 'color: transparent' to make the text transparent on IE
* Unlike other browsers, it doesn't affect caret color in IE
*/
.npm__react-simple-code-editor__textarea {
color: transparent !important;
}
.npm__react-simple-code-editor__textarea::selection {
background-color: #accef7 !important;
color: transparent !important;
}
}