---
title: "Comment by Federico Kereki on \"My Favorite JavaScript Tips and Tricks\" | Hashnode"
description: "I&#39;m not sure about the random function, because of the rounding. Check it out: I believe that the min and max values aren&#39;t produced as often the other"
url: "https://hashnode.com/posts/my-favorite-javascript-tips-and-tricks/5f203086ba06442180226d0f/comment/5f24551f90ac4260edf34841"
---

[Discussion](https://hashnode.com/posts/my-favorite-javascript-tips-and-tricks/5f203086ba06442180226d0f)

Comment [My Favorite JavaScript Tips and Tricks](https://hashnode.com/posts/my-favorite-javascript-tips-and-tricks/5f203086ba06442180226d0f)

[Federico Kereki](https://hashnode.com/@fkereki)

[Jul 31, 2020](https://hashnode.com/posts/my-favorite-javascript-tips-and-tricks/5f203086ba06442180226d0f/comment/5f24551f90ac4260edf34841)

I'm not sure about the random function, because of the rounding. Check it out: I believe that the min and max values aren't produced as often the other ones.

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 1, 2020](https://hashnode.com/posts/my-favorite-javascript-tips-and-tricks/5f203086ba06442180226d0f/comment/5f24551f90ac4260edf34841#reply-5f24c5ba669da9610ee17377)

[Federico Kereki](https://hashnode.com/@fkereki), Thanks!

Yes, the floor function has surely got more chances of producing randoms than round, I believe. Appreciate your feedback and thanks for reading through.
