Describe how random numbers could be used to simulate the roll of a die. How could two dice be simulated using this function?
What will be an ideal response?
Math.floor(7*Math.random()); calling the function twice could simulate two dice.
Computer Science & Information Technology
You might also like to view...
Pagination is the process of updating entries in an index
Indicate whether the statement is true or false
Computer Science & Information Technology
Each table in a database is stored as a separate file.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology