Universal Script 📌
498 Views
247 Executions

RNG Gamble script

Universal Script 📌
Jaafan
JaafanPublished 5
10 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
3.2M
752.9k
Bumped 1 hour ago
Key System

Script hub

Hall of Fame #8

Verified script badgeFlow Hub | 50 Games | Updated

Universal Script 📌
370
1.0k
Bumped 3 hours ago
Key System
Universal Script 📌
7.0k
141.0k
Bumped 3 hours ago
Script hub
45.6k
114.3k
Bumped 5 hours ago
Key System
Script hub
3.5M
448.4k
Bumped 6 hours ago
Key System

Script hub

Hall of Fame #4

Verified script badgeOverflow #1 *OP*

Universal Script 📌
14.8k
70.8k
Bumped 7 hours ago