Is there any command to get a random number from omnibar?
E.g. like how we can type 21 + 56 and it will show 77:
You are now able to type random number generator into Google to open an interface where you can generate a number between your desired minimum and maximum:
You can also search for:
flip a coin to roll a 2-sided dice, or;
roll a dice to roll a 6-sided die.
You could also use Google to find a site like random.org (which would probably work a lot better), or generate one with the JavaScript
Console by entering Math.ceil(Math.random()*n) where n is the maximum number that you would want to generate.
I can't find anything to suggest that you can do it with Google, but random.org has a random number generator on their home page that you can select start and end values and "roll" to get a number between.
They also have coin flippers and other random number related stuff.
Looks like the google calculator has a lot of features but random numbers is not one of them.
Google does not have a function of random number generation. Instead, you can use Wolfram Alpha.
For example, this query generates a random real number between 0 and 1. Again, this query generates a random integer number between 0 and 100.
Bookmark the following link. It will generate a random number between 1 and ? from your browser.
javascript:alert%28Math.ceil%28Math.random%28%29*%28prompt%28%271-?%27,%276%27%29*1%29%29%29
Google can roll a six-sided die, fyi.
Using Google voice search: "OK Google roll a die" Using Google search box: "roll a die"
Google recognizes the phrase "random number x to y" and returns the expected result. It also provides a little interface to generate more numbers in the same range: