1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
algol13
3 years ago
13

Why does the randomNumber function only use whole numbers between 0 and 1 (basically, 0 and 1)?

Computers and Technology
1 answer:
Bogdan [553]3 years ago
6 0

Answer:

The randomNumber function only uses whole numbers between 0 and 1 because those are the unspecified minimum and maximums to get random numbers. If you want a larger range, <em>just specify the minimum and maximum.</em>

Explanation:

<em>Example code on how to specify a larger range, replace max and min with your maximum and minimum integers.</em>

function getRandomArbitrary(min, max) {

 return Math.random() * (max - min) + min;

}

You might be interested in
. Alex discovered a bunch of SATA drives in a box at the office and needs to check the contents. What can he do so that Windows
ZanzabumX [31]

You have to make sure the BIOS boot is set to the normal hard drive first, then plug in the SATA cable and power properly

8 0
3 years ago
Drivers must always yield to emergency vehicles traveling
alina1380 [7]

True. Drivers must always yield to emergency vehicles traveling. Emergency vehicles always have the right of way, and other cars on the road need move out of their way when they see them driving with their hazards on. If there are no emergency lights or sirens, then it is okay to treat these vehicles like another vehicle on the road.

4 0
4 years ago
Which of the following could be a method for an object-oriented class called Student?
AlladinOne [14]

A method for an object-oriented class called Student could be: 4. printGrades.

<h3>What is a class?</h3>

In object-oriented programming (OOP) language, a class can be defined as a user-defined blueprint (prototype) or template that is typically used by programmers (software developers) to create objects and define the data types, categories, and methods that should be associated with these objects.

Additionally, an object class In object-oriented programming (OOP) language represents the superclass of every other classes when a programming language such as Java is used.

In conclusion, printGrades could be a method for an object-oriented class called Student.

Read more on object-oriented class here: brainly.com/question/20264183

8 0
2 years ago
Joe is examining the logs for his web server and discovers that a user sent input to a web application that contained the string
alexira [117]
SQL Injection Attack
6 0
2 years ago
Carla needs to list the role for each consultant. Those with four or more years of 26 15 experience take the Lead role. Otherwis
saveliy_v [14]

Answer :

The output is attached below

Explanation:

The following formula needs to be entered into cell N5:

=IF($M5>=4,"Lead","Associate")

4 0
3 years ago
Other questions:
  • The 2 main types of copyright relevant to the recording industry?
    5·2 answers
  • Is something wrong with Brainly?
    5·2 answers
  • Henry is nervous speaking in public, and it shows every time he presents his ideas to his coworkers and manager. One of his team
    6·2 answers
  • SONET: is a standard for optical transmission that currently operates at Terabit per second speeds is almost identical to the IT
    7·1 answer
  • Split a string by string.
    6·1 answer
  • Write a loop that displays all possible combinations of two letters where the letters are 'a', or 'b', or 'c', or 'd', or 'e'. T
    10·1 answer
  • Three batch jobs, A through E, arrive at a computer center at almost the same time. They have estimated running times of 10, 6,
    6·1 answer
  • Which guideline would not promote energy conservation?
    15·1 answer
  • Select the correct text in the passage.
    12·1 answer
  • Sub to splashy
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!