두 값 사이의 난수 생성하기

1
2
3
function getRandomArbitrary(min, max) {
return Math.random() * (max - min) + min;
}
  • mdn에 여러가지 조건의 난수를 생성하는 좋은 예제가 있다

참고

Author

chinsung

Posted on

2021-01-05

Updated on

2021-07-12

Licensed under

댓글