You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docpages/basic-language-reference/functions/integer/RND.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ NEXT
44
44
* The result is an **integer** within the inclusive range `[min, max]`.
45
45
* If `min > max`, behaviour is undefined.
46
46
* Suitable for general randomness in games, simulations, and sampling.
47
-
***Not cryptographically secure**— although the kernel provides an unpredictable seed, the Mersenne Twister itself is deterministic and predictable if state is known.
47
+
***Not cryptographically secure**- although the kernel provides an unpredictable seed, the Mersenne Twister itself is deterministic and predictable if state is known.
48
48
***Retro Rocket BASIC difference:** BBC BASIC used a 33-bit LFSR (linear feedback shift register). Retro Rocket uses a modern PRNG (Mersenne Twister).
Copy file name to clipboardExpand all lines: docpages/basic-language-reference/functions/string/HIGHLIGHT.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,20 @@ Given a string containing BASIC source, returns a copy with ANSI SGR escape sequ
8
8
9
9
**Notes**
10
10
11
-
***Strings**— text between double quotes (`"..."`) is highlighted in **light yellow** from the opening quote to the closing quote. If a closing quote is missing, highlighting continues to the end of the input and is then reset.
11
+
***Strings**- text between double quotes (`"..."`) is highlighted in **light yellow** from the opening quote to the closing quote. If a closing quote is missing, highlighting continues to the end of the input and is then reset.
12
12
***Comments**
13
13
14
14
* A single quote (') begins a comment that is highlighted in **dark green** until the end of the input.
15
15
* The keyword `REM` (when not inside a string) causes the **entire line** to be treated as a comment and highlighted in **dark green**.
16
-
***Keywords / tokens**— recognised BASIC keywords are highlighted in **light blue** when they are not part of a longer identifier. Boundary detection prevents colouring inside names like `FORTH`. Exceptions: `PROC`, `FN`, and `=` may be adjacent to letters/digits/underscores and will still be highlighted.
16
+
***Keywords / tokens**- recognised BASIC keywords are highlighted in **light blue** when they are not part of a longer identifier. Boundary detection prevents colouring inside names like `FORTH`. Exceptions: `PROC`, `FN`, and `=` may be adjacent to letters/digits/underscores and will still be highlighted.
17
17
***Built-in functions**
18
18
19
19
* Integer-returning built-ins are **light green**.
20
20
* String-returning built-ins are **light magenta**.
21
21
* Real/float-returning built-ins are **light cyan**.
22
-
***Numeric literals**— digits (and a leading unary `+`/`-`) are highlighted in **orange**.
23
-
***Operators & punctuation**—`() + - * / = < > , ;` are highlighted in **dark red**.
24
-
***Default text**— rendered in **white**. Colours are reset back to white after each coloured span, and a final reset is appended at the end of the result to prevent “colour leakage” in the caller’s terminal.
22
+
***Numeric literals**- digits (and a leading unary `+`/`-`) are highlighted in **orange**.
23
+
***Operators & punctuation**-`() + - * / = < > , ;` are highlighted in **dark red**.
24
+
***Default text**- rendered in **white**. Colours are reset back to white after each coloured span, and a final reset is appended at the end of the result to prevent “colour leakage” in the caller’s terminal.
0 commit comments