Build Random Fake Code
Generates fake source code text using language-style presets and formatting options.
Great for procedural UI, “hacker terminal” effects, background code walls, or sample/lore snippets.
The output looks like real code (keywords, indentation, comments, operators) but is purely cosmetic.
Parameters
| Parameter | Description |
|---|---|
| Language | Language preset that controls keywords, comment style, block markers, and general “feel.” Options: CSharp, Python, JavaScript, Assembly. |
| Line Count | Approximate number of lines to generate. |
| Line Length | Target number of characters per line (approximate). |
| Line Length Jitter | Random ± variation applied to each line’s length to avoid a rigid grid look. |
| Include Comments | Insert comment lines or inline comments using the preset’s style (e.g., //, #, ;). |
| Include Blocks | Include block syntax when applicable (e.g., { }, :) and indent nested lines. |
| Include Punctuation | Sprinkle operators and punctuation (+, =, &&, ,, etc.) for realism. |
| Include Blank Lines | Occasionally insert blank lines for pacing/paragraph breaks. |
| Include Doc Comments | Occasionally add doc-style comments above signatures (///, /** ... */, or """...""" where supported). |
| Gamey Identifiers | Bias identifier names toward game terms (e.g., health, enemyCount, spawnPoint). |
| Store Result | String variable to store the generated fake code. |
Example Output
C# Example
if (level == true) {
}
private static float Pickup(float value) {
private static float Handler(float coyoteTime) {
return handler;
}
private static void Crit(void handler) {
while (handler % coyoteTime) {
bool omega = 2;
private static string Gold(string combo) {
continue;
private static float Omega(float enemy) {
}
}
}
}
}
Assembly Example
main:
add 0x0, 0x1
; cleanup: note deprecated debug
call rax, 0x1
label:
or [rdx+18], [rdi+5]
; check: refactor
; debug
push rsi, 0x0
ret 42, 0xFF
cmp rbx