Solved

If You Wanted the Following Function to Return Only the Two

Question 26

Multiple Choice

If you wanted the following function to return only the two values of 0 and 1, how would you re-write line 2?
1 ) function tossIt() {
2 ) return Math . random() ;
3 ) }


A) return Math . round() ;
B) return Math . round(Math . random() ) ;
C) return Math . round(random() ) ;
D) This cannot be done .

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents