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.
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.
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.
As to the question you're searching for, check this out... -How to get a random number in Ruby