Skip to main content
Ade Olonoh

Personal apps

Randy

A borderless, transparent panel that floats on the desktop showing a random number, re-rolled once a second.

Live prototypeOpen full screen →

Nothing is saved. Refresh to start over.

Randy paints a random number straight onto your wallpaper and rolls a new one every second, whether you’re looking or not. Drag the digits to move it.

I built this for GTO poker. Solver strategies mix actions at set frequencies, and I needed a number on screen to pick between them while juggling a dozen tournaments.

What it doesn’t do

No roll button, no dice notation, no history, no sound, no animation. The number just changes.

The prompt

Give this to a coding agent to build your own Randy. The prompt and the prototype are MIT licensed.

prompt.mdDownload
Build me a floating random-number widget as a desktop app. A borderless, transparent panel sits on my desktop and shows a random number that re-rolls once a second, forever, by itself. There is no button and nothing to click. It just sits there ticking, and when I need a number, I look at it. The window has no chrome at all (no title bar, no background, no shadow, no border), so what you see is the digits painted onto the wallpaper. A separate Settings window controls the range, how fast it ticks, and how it looks.

## What I want

**The panel.** One number, centred, bold, with tabular figures so the digits don't jitter as the value changes. That's the entire view. It's movable by dragging the digits, and it sizes itself to its content: a bigger font means a bigger window, and going from 9 to 100 widens it. When it resizes, pin the top-left corner and let it grow right and down. Anchoring the centre makes the number wander while you're watching it.

**Settings**, a normal titled window with a close button, opened from the app menu or Cmd+comma. Two sections. Behavior: Minimum (stepper), Maximum (stepper), Tick speed (slider, 0.1s to 5s, shown as `1.00s`), Always on top (switch). Appearance: Opacity (slider, 10% to 100%), Font size (stepper, 16 to 96 pt in steps of 2), Text color (a segmented Auto / Custom picker). Picking Custom reveals a Custom color row with a colour well; Auto hides it again. Then an unlabelled last section with one destructive "Reset to Defaults" button, right-aligned.

**The menu.** About, Settings… (Cmd+comma), Hide, Quit. That's the whole menu, because there are no other things you can do. About is the platform's standard one: icon, name, version.

## What it is not

- Not a dice roller. No roll button, no `2d6` notation, no tumbling-dice animation, no sound. The point is that the number is already there when you glance at it.
- No history of past numbers.
- No pause button, no global hotkey, no second panel for a second range.
- No accounts, no network, no analytics.

## Rules that matter

- Every setting applies live, with no OK or Apply. Drag the opacity slider and the number fades under your cursor.
- The range can never be inverted. Raising the minimum past the maximum pushes the maximum up with it; lowering the maximum below the minimum drags the minimum down. Clamp at the input, so the generator never has to defend itself.
- Closing the panel quits the app. Closing Settings does not. This is easy to get backwards on a platform that quits when the last window closes: the panel is the app, and Settings is an accessory.
- Position and every setting survive a relaunch. If the saved position is off-screen (a monitor was unplugged), centre the panel on the main screen rather than restoring a window nobody can see.
- Always on top is off by default.
- Auto text color means the system's label color, not "whatever contrasts with the wallpaper". On a light system it's near-black even over a dark desktop. That's correct, and it's why Custom exists.
- The tick has a floor. The slider stops at 0.1s, but clamp anything faster in the timer too, so a bad value can't spin the CPU.
- No animation on the number. No fade, no slide, no odometer roll. It changes.
- Storage is the platform's small-preferences store, and nothing else is stored. Fields: minValue (default 1), maxValue (100), tickSeconds (1.0), opacity (0.8), fontSize (48), textColorMode (auto or custom), customTextColor (unset), alwaysOnTop (false), frameOrigin (unset, meaning centre on the main screen). "No saved position" and "position 0,0" are different states.
- It opens straight to a number between 1 and 100 and the Settings window. There is no empty state.
- Accessibility: every control works from the keyboard with a visible focus ring, sliders take arrow keys, steppers have real labels ("Increase minimum"), and the panel announces the current number.

## How it should feel

Stock. The app should look like the platform shipped it: system font, system label colors, the standard grouped-form styling for Settings. Motion is essentially none. Switches snap, the segmented picker slides, windows do whatever the platform does, and nothing else moves. This app is mostly window behaviour and a little `random()`, so a framework that can't give you a borderless, transparent, always-on-top window is the wrong one.

## Building this

This is a desktop app. Build one that installs and runs on a computer, not a web page or a single HTML file. If the spec leaves the operating system or framework open, pick one and tell me which. The prototype is a web mock of it: a reference for layout, copy and behaviour, not code to port.