Skip to main content
Made Y and Z not have the same probability
Source Link
Trebuchette
  • 1.7k
  • 12
  • 15

Lua, 100 99 bytes

s="A"math.randomseed(os.time())for i=66,90 do
s=.5<math6<math.random()and string.char(i)or s end  
print(s)

Not really competitive, but still an interesting algorithm I think.

Lua, 100 99 bytes

s="A"math.randomseed(os.time())for i=66,90 do
s=.5<math.random()and string.char(i)or s end print(s)

Not really competitive, but still an interesting algorithm I think.

Lua, 100 99 bytes

s="A"math.randomseed(os.time())for i=66,90 do
s=.6<math.random()and string.char(i)or s end 
print(s)

Not really competitive, but still an interesting algorithm I think.

Source Link
Trebuchette
  • 1.7k
  • 12
  • 15

Lua, 100 99 bytes

s="A"math.randomseed(os.time())for i=66,90 do
s=.5<math.random()and string.char(i)or s end print(s)

Not really competitive, but still an interesting algorithm I think.