Welcome To Snipplr
Everyone's Recent Java Snippets Tagged math
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
You have to use float or double for the returned value, since the scale occurs in a continuous function.
0
1256
posted 11 years ago by rtperson
Número aleatorio entre a y a + b, excluyendo a + b:
a + Math.random() * b
0
563
posted 12 years ago by goo
« Prev 1 Next »