Click here to Skip to main content
15,891,529 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: is it possible? Pin
dusty_dex10-May-13 9:41
dusty_dex10-May-13 9:41 
GeneralRe: is it possible? Pin
Hakan Bulut10-May-13 22:31
Hakan Bulut10-May-13 22:31 
GeneralRe: is it possible? Pin
dusty_dex10-May-13 23:23
dusty_dex10-May-13 23:23 
GeneralRe: is it possible? Pin
Richard MacCutchan11-May-13 0:07
mveRichard MacCutchan11-May-13 0:07 
GeneralRe: is it possible? Pin
dusty_dex11-May-13 0:15
dusty_dex11-May-13 0:15 
GeneralRe: is it possible? Pin
Richard MacCutchan11-May-13 0:24
mveRichard MacCutchan11-May-13 0:24 
GeneralRe: is it possible? Pin
dusty_dex11-May-13 0:43
dusty_dex11-May-13 0:43 
GeneralRe: is it possible? Pin
Hakan Bulut11-May-13 1:38
Hakan Bulut11-May-13 1:38 
C#
import javax.swing.*;
public class RandomNumber {

    /**
     * @param args
     */
    public static void main(String[] args) {
        int IsToken[]  = {
                9,10,38,40,46,48,
                11,40,42,45,47,48,
                1,19,26,30,31,48
                };
        int lucky[];
        int column;
        final int MAX_DATA = 49;
        int[ ] arLotto = new int[MAX_DATA];
        for(var i=0; i<MAX_DATA; i++){
            if(private static boolean[] IsToken[] == true){
                else if(arLotto[rnd] != Istoken[]){
                    arLotto[rnd] = lucky[column]
                    column++;

            }
        }

        int rnd = (int) Math.round(49 * Math.random());
        //JOptionPane.showmessageDialog(null, "rnd")
        System.out.print(lucky[column]);
    }

}

GeneralRe: is it possible? Pin
dusty_dex11-May-13 2:10
dusty_dex11-May-13 2:10 
GeneralRe: is it possible? Pin
Hakan Bulut11-May-13 2:40
Hakan Bulut11-May-13 2:40 
GeneralRe: is it possible? Pin
dusty_dex11-May-13 2:43
dusty_dex11-May-13 2:43 
GeneralRe: is it possible? Pin
Hakan Bulut11-May-13 3:54
Hakan Bulut11-May-13 3:54 
GeneralRe: is it possible? Pin
dusty_dex11-May-13 8:53
dusty_dex11-May-13 8:53 
GeneralRe: is it possible? Pin
dusty_dex12-May-13 0:13
dusty_dex12-May-13 0:13 
GeneralRe: is it possible? Pin
dusty_dex12-May-13 12:38
dusty_dex12-May-13 12:38 
GeneralRe: is it possible? Pin
Hakan Bulut12-May-13 21:17
Hakan Bulut12-May-13 21:17 
GeneralRe: is it possible? Pin
dusty_dex13-May-13 1:24
dusty_dex13-May-13 1:24 
GeneralRe: is it possible? Pin
Hakan Bulut13-May-13 2:44
Hakan Bulut13-May-13 2:44 
GeneralRe: is it possible? Pin
dusty_dex13-May-13 3:24
dusty_dex13-May-13 3:24 
GeneralRe: is it possible? Pin
Hakan Bulut13-May-13 4:23
Hakan Bulut13-May-13 4:23 
GeneralRe: is it possible? Pin
dusty_dex13-May-13 4:51
dusty_dex13-May-13 4:51 
GeneralRe: is it possible? Pin
dusty_dex13-May-13 13:38
dusty_dex13-May-13 13:38 
GeneralRe: is it possible? Pin
dusty_dex15-May-13 6:00
dusty_dex15-May-13 6:00 
GeneralRe: is it possible? Pin
Hakan Bulut15-May-13 7:51
Hakan Bulut15-May-13 7:51 
GeneralRe: is it possible? Pin
dusty_dex15-May-13 8:45
dusty_dex15-May-13 8:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.