import java.util.*;
import java.lang.*;
import java.io.*;
// The main method must be in a class named "Main".
class Main {
public static void main(String[] args) {
// Number of verses in each chapter of the Quran
int[] versesInChapters = {
7, 286, 200, 176, 120, 165, 206, 75, 129, 109, 123, 111, 43, 52, 99, 128, 111, 110, 98, 135,
112, 78, 118, 64, 77, 227, 93, 88, 69, 60, 34, 30, 73, 54, 45, 83, 182, 88, 75, 85, 54, 53,
89, 59, 37, 35, 38, 29, 18, 45, 60, 49, 62, 55, 78, 96, 29, 22, 24, 13, 14, 11, 11, 18, 12,
12, 30, 52, 52, 44, 28, 28, 20, 56, 40, 31, 50, 40, 46, 42, 29, 19, 36, 25, 22, 17, 19, 26,
30, 20, 15, 21, 11, 8, 8, 19, 5, 8, 8, 11, 11, 8, 3, 6, 3, 5, 4, 5, 4, 5, 6
};
// Generate a random chapter number
Random random = new Random();
int chapter = random.nextInt(versesInChapters.length) + 1;
// Generate a random verse number from the selected chapter
int verse = random.nextInt(versesInChapters[chapter - 1]) + 1;
// Print the random chapter and verse in the desired format
System.out.println("tanzil.net/#" + chapter + ":" + verse);
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: