Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions concepts/randomness/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ This concept is not about Web Crypto and will restrict itself to pseudo-random n

## Generating random numbers

In Javascript, you can generate psuedorandom numbers using the [`Math.random()`][Math.random] function.
It will return a psuedorandom floating-point number between 0 (inclusive), and 1 (exclusive).
In Javascript, you can generate pseudorandom numbers using the [`Math.random()`][Math.random] function.
It will return a pseudorandom floating-point number between 0 (inclusive), and 1 (exclusive).

To get a random number between _min_ (inclusive) and _max_ (exclusive) you can use a function something like this:

Expand Down
4 changes: 2 additions & 2 deletions concepts/randomness/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Finish the learning exercise(s) about this concept to learn more

## Generating random numbers

In Javascript, you can generate psuedorandom numbers using the [`Math.random()`][Math.random] function.
It will return a psuedorandom floating-point number between 0 (inclusive), and 1 (exclusive).
In Javascript, you can generate pseudorandom numbers using the [`Math.random()`][Math.random] function.
It will return a pseudorandom floating-point number between 0 (inclusive), and 1 (exclusive).

To get a random number between _min_ (inclusive) and _max_ (exclusive) you can use a function something like this:

Expand Down
4 changes: 2 additions & 2 deletions exercises/concept/captains-log/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Finish the learning exercise(s) about this concept to learn more

## Generating random numbers

In Javascript, you can generate psuedorandom numbers using the [`Math.random()`][Math.random] function.
It will return a psuedorandom floating-point number between 0 (inclusive), and 1 (exclusive).
In Javascript, you can generate pseudorandom numbers using the [`Math.random()`][Math.random] function.
It will return a pseudorandom floating-point number between 0 (inclusive), and 1 (exclusive).

[why-randomness-is-hard]: https://www.malwarebytes.com/blog/news/2013/09/in-computers-are-random-numbers-really-random
[Math.random]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
2 changes: 1 addition & 1 deletion exercises/concept/captains-log/.meta/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Goal

The goal of this exercise is to teach the student how to generate psuedorandom numbers in JavaScript.
The goal of this exercise is to teach the student how to generate pseudorandom numbers in JavaScript.

## Learning objectives

Expand Down