anyone know that how to do this?

hi, i just found a bingo card maker script but have no idea to use this script in unity.
i will use it android and web base
i start using unity just a few days.
i don’t have any experience game creating.
i did create bingo balls fooling down but i want each of them randomly numbered different all the time the game started. and when they felt to the ground, i want the bingo card automatically marked. (i want the mark as, the background colour of the number will change in for example : red)

i will be greatfull if somebody have any idea to do this.

here is the script that i have found

29  script.css

@@ -0,0 +1,29 @@
+body {

  • background-color: white;
  • color: black;
  • font-size: 20px;
  • font-family: “Lucida Grande”, Verdana, Arial, Helvetica, sans-serif;
    +}

+h1, th {

  • font-family: Georgia, “Times New Roman”, Times, serif;
    +}

+h1 {

  • font-size: 28px;
    +}

+table {

  • border-collapse: collapse;
    +}

+th, td {

  • padding: 10px;
  • border: 2px #666 solid;
  • text-align: center;
  • font-size: 24px;
    +}

+#free {

  • background-color: #F66;
    +}
    56  script.html

@@ -0,0 +1,56 @@
+
+

  • Make Your Own Bingo Card

+
+
+

Create A Bingo Card


+

  • +

    B I N G O
             
             
        Free    
             
             

    +

    Click here to create a new card


    +
    +
    45  script.js

    @@ -0,0 +1,45 @@
    +window.onload = initAll;
    +var usedNums = new Array(76);
    +
    +function initAll() {

    • if (document.getElementById) {
    • document.getElementById(“reload”).onclick = anotherCard;
    • newCard();
    • }
    • else{
    • alert(“Your browser does not support this script.”);
    • }
      +}

    +function newCard() {

    • for(var i=0 ; i<24 ; i++){
    • setSquare(i);
    • }
      +}

    +function setSquare(thisSquare){

    • var currentSquare = “square” + thisSquare;
    • var colPlace = new Array(0,1,2,3,4,0,1,2,3,4,0,1,3,4,0,1,2,3,4,0,1,2,3,4);
    • var colBasis = colPlace[thisSquare] * 15;
    • var newNum = colBasis + getNewNum() + 1;
    • do{
    • newNum = colBasis + getNewNum() + 1;
    • }while(usedNums[newNum]);
    • usedNums[newNum] = true;
    • document.getElementById(currentSquare).innerHTML = newNum;
      +}

    +function getNewNum() {

    • return Math.floor(Math.random() * 15);
      +}

    +function anotherCard() {

    • for (var i = 1; i < usedNums.length; i++) {
    • usedNums = false;
      + };
      +
      + newCard();
      + return false;
      +}

    What you’ve pasted here isn’t going to be of any use to you - the majority of it is HTML and CSS.

    If your serious about wanting to learn to make something in Unity, the Learn section is a good place to start.

    yes i want to but its very compilicated for me. im good in creating ideas but not coding =(

    is it very hard to code that i need?

    For a bingo game? No not really, but what you posted is basically the source code from a web page - that isn’t going to help you make something in Unity.

    Coding can seem complicated at first, but its a very logical process, and the only way to learn it is to try. The Learn section has some great Tutorials that cover not only coding, but how to use the Unity editor, as does the Live Training.

    this is like learning the all french language for only say " i want a cup of water ". i will be greatfull if one just help me about this. and i found another code, can this usable in unity? and btw this is not look that hard. if this can work, i can use some tip to use this codes for my bingo balls that i have already created.

    Listing 14. Building the base set of numbers for Bingo
    for ($i = 1; $i < 16; $i++) {
    $numbers[‘B’][ ] = $i;
    $numbers[‘I’][ ] = $i+15;
    $numbers[‘N’][ ] = $i+30;
    $numbers[‘G’][ ] = $i+45;
    $numbers[‘O’][ ] = $i+60;
    }

    Listing 15. Creating a master array
    $letters = array (‘B’,‘I’,‘N’,‘G’,‘O’);
    foreach ($letters as $letter) {
    shuffle($numbers[$letter]);
    $chunks = array_chunk($numbers[$letter], 5);
    $cards[$i][$letter] = $chunks[0];
    if ($letter == ‘N’) {
    $cards[$i][$letter][2] = ’ '; // Free Space
    }
    shuffle($balls);
    }

    No, none of that is usable in Unity. Please follow the links others have posted about scripting in Unity. After you’ve had some experience, you can post a question about Unity coding if you still need help. Posting random code from web sites won’t help you.

    –Eric