# Random Numbers

In reality, computers can only create "pseudorandom" numbers because they are created from a mathematical procedure or algorithm. Almost every programming language has the ability to generate some sort of random value - it might be up to the programmer to convert that value to an integer or specific type of value.

{% tabs %}
{% tab title="Javascript" %}
Javascript uses [the Math object](https://cs.brash.ca/unit-2/variables/numbers/the-math-object) to generate random numbers.

```javascript
// Under construction - content coming
let 
```

{% endtab %}

{% tab title="C++" %}
C++ is a strongly typed language...  content coming

```cpp
// Content coming...
int 

```

{% endtab %}

{% tab title="Java" %}
Java also uses a math library... content to come

```java
// Content coming...
int

```

{% endtab %}

{% tab title="Python" %}
Python always has to be a bit different...

```python
# Content coming...
myRandomNumber = 
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cs.brash.ca/unit-2/variables/numbers/the-math-object/random-numbers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
