Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 12th, 2018
88
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
class Time
def self.random(t1, t2)
int = t2.to_i - t1.to_i
at(t1.to_i + rand(int+1))
end
end
Time.random Time.now, Time.parse("2012/12/31")
=> Tue Nov 06 10:25:17 +0100 2012
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
1 hour ago | 5.42 KB
Secrets.kdbx
10 hours ago | 166.19 KB
paul-graham-ghostwriting.prompt.md
1 day ago | 5.68 KB
Energy limiter
1 day ago | 0.34 KB
GEOMETRY SW
1 day ago | 1.85 KB
brain.roblox
3 days ago | 14.59 KB
Untitled
3 days ago | 26.41 KB
Untitled
3 days ago | 14.72 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!