Type: Posts; User: aspiringpro

Search: Search took 0.00 seconds.

  1. The html

    The html

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
  2. var usedNum = new Array(); function...

    var usedNum = new Array();

    function getUniqueRandom(factor) {
    var num, index;
    var looking = true;
    do {
    num = Math.floor(Math.random() * factor)
    for (index = 0;...
  3. This code accomplishes the both the regular...

    This code accomplishes the both the regular numbers and the mega number but I think it is still using Math.random...

    var usedNum = new Array();

    function getUniqueRandom(factor) {
    var num,...
  4. Amazing!

    Wow!!! That's amazing how much better your method is. A problem still exists however. The lottery picks 5 numbers and 1 mega number. So we need 5 random non-duplicating numbers up to 58 and 1...
  5. Semi working

    The fields are separate now however the mega number should be able to have a duplicate number to one of the 5 regular numbers. The code right now does not allow this. Any ideas?
  6. Thanks but...

    How do I get each value into it's own individual text fields? I want the user to be able to enter their own number or quickpick them.
  7. Random Lottery Number Generating Form Fields

    I want a user to have the option of inputing lottery number selections into a form manually OR by clicking a button that will quick-pick the numbers for them. This script below only prints the...
Results 1 to 7 of 7
HTML5 Development Center

Recent Articles