Unit 6 - Simulations

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/4

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

5 Terms

1
New cards

What is a simulation?

A simulation is an abstraction of an infinitely complex natural phenomena

2
New cards

What is a physics engine?

It is a library of code that can simulate physical systems, typically used to create realistic digital worlds.

3
New cards

Why are random values useful?

Random values can be used to make decisions and simulate natural processes.

4
New cards

How do you generate a random number between 0 and 1 in Java?

Math.random()

5
New cards

How do you generate a random integer in Java?

You use Math.floor on top of Math.random() in order to round down to the nearest integer