Skip to content

Commit

Permalink
Merge pull request #5250 from htcfreek/PtRun_calculator_randi
Browse files Browse the repository at this point in the history
[PowerToys > Run] Calculator plugin: Add randi(x) to function table
  • Loading branch information
alvinashcraft authored Jan 29, 2025
2 parents 6174487 + dbb6525 commit eef3df0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hub/powertoys/run.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: PowerToys Run utility for Windows
description: Run is a quick launcher for power users that contains additional features without sacrificing performance.
ms.date: 11/19/2024
ms.date: 12/25/2024
ms.topic: concept-article
ms.localizationpriority: medium
no-loc: [PowerToys, Windows, File Explorer, PowerToys Run, Window Walker]
Expand Down Expand Up @@ -197,7 +197,8 @@ The Calculator plugin supports the following operations:
| Power of x | pow( x, y ) | Calculate a number (x) raised to the power of some other number (y). |
| Factorial | x! | |
| Sign | sign( -x ) | A number that indicates the sign of value:<br />• `-1` if number is less than zero.<br />• `0` if number is zero.<br />• `1` if number is greater than zero. |
| Random number | rand() | Returns a fractional number between 0 and 1. |
| Random fractional number | rand() | Returns a fractional number between 0 and 1. |
| Random integer number | randi( x ) | Returns an integer number between 0 and `x`. |
| Pi | pi | Returns the number pi. |
| Sine | sin( x ) | |
| Cosine | cos( x ) | |
Expand Down

0 comments on commit eef3df0

Please sign in to comment.