[phpBB Debug] PHP Warning: in file [ROOT]/ext/lmdi/autolinks/event/listener.php on line 237: Undefined array key 29
[phpBB Debug] PHP Warning: in file [ROOT]/ext/lmdi/autolinks/event/listener.php on line 237: Trying to access array offset on value of type null
Answer Happy • What are the possible values of z after running the following code? x = Math.floor(Math.random()*2)*2-1; y = Math.random
Page 1 of 1

What are the possible values of z after running the following code? x = Math.floor(Math.random()*2)*2-1; y = Math.random

Posted: Wed Mar 30, 2022 9:17 am
by answerhappygod
What are the possible values of z after running the following
code?
x = Math.floor(Math.random()*2)*2-1;
y = Math.random();
z = x*(y+2);
Group of answer choices
z is a floating-point number such that -3<z≤-2 or 2≤z<3,
i.e., zϵ]-3, -2]⋃[2, 3[
z is an integer such that zϵ{-3, -2, 2, 3}
z is an integer such that zϵ{-3, -2, -1, 0, 1, 2, 3}
z is a floating-point number such that -3<z<3, i.e.,
zϵ]-3, 3[