Universal Script ๐Ÿ“Œ
503 Views
318 Executions

RNG Gamble script

Universal Script ๐Ÿ“Œ
Jaafan
Jaafan10K executions
11 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Generates 3 random numbers between 1 and 100, if all 3 are the same then it's a jackpot

View Raw
-- [[ WARNING ]]
-- Your console will be filled with outputs.

for i = 1, 1000 do 
  local firstNumber = math.random(1, 100)
local secondNumber = math.random(1, 100)
local thirdNumber = math.random (1, 100)

if firstNumber == secondNumber and secondNumber == thirdNumber then
  warn(string.format("Jackpot!! %d, %d, %d", firstNumber, secondNumber, thirdNumber))
else
  print(string.format("Maybe next time. %d, %d  %d", firstNumber, secondNumber, thirdNumber))
end 
end


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
5.6M
1.2M
Bumped 2 hours ago
Key System
Universal Script ๐Ÿ“Œ
1.9k
6.7k
Bumped 4 hours ago
Script hub
23.3k
4.9k
Bumped 5 hours ago
Key System
Paid
High Qualityย Offering
Script hub
4.1M
546.3k
Bumped 6 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow #1 *OP*

Universal Script ๐Ÿ“Œ
14.3k
56.5k
Bumped 10 hours ago
High Qualityย Offering
Script hub
2.9M
976.7k
Bumped 10 hours ago
Key System
Universal Script ๐Ÿ“Œ
9.2k
212.2k
Bumped 10 hours ago
Script hub
86.8k
364.1k
Bumped 10 hours ago
Key System