Skip to content
mycodenotes

mycodenotes

I'm learning to code. These are my notes.

  • Home
  • Library
  • Contact

Tag: random

What is Math.random and Math.floor good for?

Sometimes you want your code to spit out random numbers, because who doesn't like a random number right? (Looking at you lottery lady) Math.random ( ) ; Returns a random number between 0 and 1 (excluded). You can then multiply it by 10, for example, to get a number between 0-10, or by 1000 for … Continue reading What is Math.random and Math.floor good for? →

Lorena JavaScript Leave a comment 10th Apr 202010th Apr 2020 1 Minute

Search

Categories

  • CSS
  • JavaScript

Create a website or blog at WordPress.com
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • mycodenotes
    • Already have a WordPress.com account? Log in now.
    • mycodenotes
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.com
Get started