When we are considering a set of random numbers between 1 and 100 or any other number(s) then is it necessary that the numbers should always be an Integer. Can the number be a floating point number like 4.35678 ?
2026-04-01 20:29:25.1775075365
On
Can a set of random numbers contain floating point numbers?
51 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
There are 2 best solutions below
0
On
It depends on the distribution. As long as it is a probability space (which is a set where each subset has been assigned a probability along with certain axioms which assert that this behaves like how you would expect probability to behave), it is a valid random distribution. You can even restrict your set to only return numbers of a certain type, like ones which only have certain digits.
It depends on what you are asked, you are free to build any distribution in any set you want. You can have $x\sim[1,100]\cap\mathbb{N}$ or $x\sim[1,100]\cap\mathbb{Q}$. The last case can include any rational (floating point) numbers you want.