Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 19th, 2017
68
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
const random = ( min = 0, max = 10 ) => Math.floor( Math.random() * ( max - min ) + min )
console.log(random())
console.log(random( -10, 10 ))
console.log(random( 50, 250 ))
Add Comment
Please,
Sign In
to add comment
Public Pastes
Forward conversation to email
JavaScript | 2 min ago | 3.95 KB
Untitled
CSS | 9 min ago | 0.44 KB
Wordpress Add Admin
PHP | 20 min ago | 7.68 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 33 min ago | 0.38 KB
Deque of Number
C++ | 41 min ago | 5.84 KB
Ultrasonic sensor
Arduino | 49 min ago | 1.37 KB
PRDWPCONF.json
JSON | 59 min ago | 49.75 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!