Skip to main content
Commonmark migration
Source Link

#Ruby, 14

Ruby, 14

Function

->n{rand(n)<1}

Program is slightly longer

p rand(gets.to_i)<1

#Ruby, 14

Function

->n{rand(n)<1}

Program is slightly longer

p rand(gets.to_i)<1

Ruby, 14

Function

->n{rand(n)<1}

Program is slightly longer

p rand(gets.to_i)<1
deleted 2 characters in body
Source Link
Level River St
  • 26.7k
  • 4
  • 37
  • 105

#Ruby, 1614

Function

f=->n{rand(n)<1}

Program is slightly longer

p rand(gets.to_i)<1

#Ruby, 16

Function

f=->n{rand(n)<1}

Program is slightly longer

p rand(gets.to_i)<1

#Ruby, 14

Function

->n{rand(n)<1}

Program is slightly longer

p rand(gets.to_i)<1
Source Link
Level River St
  • 26.7k
  • 4
  • 37
  • 105

#Ruby, 16

Function

f=->n{rand(n)<1}

Program is slightly longer

p rand(gets.to_i)<1