0

When I search Google to give me different methods to generate a random number between -1 and 1 using:

rand between -1 and 1 ruby

it gives me did not find any documents. Anyone know why? Seems like a basic search query to me.

Shubham
  • 352
  • 3
  • 14
  • 1
    try: rand between "-1" and "1" ruby. minus sigh in googe query basically excludes following word/statement from search results. so you are excluding "1" – LorDex Sep 23 '15 at 13:44
  • this really belongs on webapps or superuser, it's not a programming problem. – Mousey Sep 27 '15 at 01:25
  • [Here](http://www.1stwebdesigner.com/how-to-use-google-pro-tips-tricks/) is something useful to get you started using Google Search. – rbaleksandar Sep 27 '15 at 02:06

1 Answers1

2

The minus sign operator in a Google search is saying "exclude", so you're saying "exclude 1 and include 1", so zero results.

Similarly, if you want to exclude a word entirely, you can add a dash before it—like justin bieber -sucks if you want sites that only speak of Justin Bieber in a positive light.

-LifeHacker

As to the question you're searching for, check this out... -How to get a random number in Ruby

Community
  • 1
  • 1
LDMJoe
  • 1,591
  • 13
  • 17