Search Result

Collapse
12 results in 0.0014 seconds.
Keywords
Members
Tags
random
  •  

  • brnedon bourne
    started a topic Varied Job Schedule, Excel

    Varied Job Schedule, Excel

    I've been working on an idea on how to create a job schedule from a list of names and a list of numbers (numbers are positions) I'd like it to generate 4 columns of predefined numbers so that each person has a unique number for each column. Ex.
    1 2 3 4
    Jim 21 22 11 10
    Dave 10 11 21 22
    Will 11 10 22 21
    John 22 21 10 11

    Does anyone know how I...
    See more | Go to post

  • David Snyder
    started a topic Database with table naming issues

    Database with table naming issues

    I am attempting to fix an old Quiz database that someone gave me. When someone takes a test, I want the test to pull 25 random questions. I built the query and used SELECT TOP 25. That works fine. The problem with the RND command is that the person built the table with a space in the name (Question Table). When I try to use the RND command I get an error. I made a copy of the table and renamed it, this allows the RND command to work fine. ...
    See more | Go to post

  • Ron Poulton
    started a topic Retrieve a Random Image URL From Google With PHP
    in PHP

    Retrieve a Random Image URL From Google With PHP

    A recent project involved me obtaining a random image from the Web and using it in some specific fashion. I chose to use PHP to access Google Images for a random image URL. The image could be generic or related to a specific topic.

    Here's the PHP function that queries Google Images and returns an image URL:
    Code:
    function GetRandomImageURL($topic='', $min=0, $max=100)
    {
      // get random image from Google
      if ($topic=='')
    ...
    See more | Go to post

  • How can I generate an include with a random number inside it?

    I want to include divs for promotions, adverts, random site content and so on. The method I'd thought of is this: include them using random numbers. So I'd eventually want to generate something like:
    Code:
    include("promo-column/promo-1.php")
    where the 1 could be between two set numbers, randomly chosen on page load. I understand how to generate a random number (i.e.
    Code:
    echo 'whatever-', rand(1, 5);
    but I don't know the syntax to have that happen...
    See more | Go to post

  • dyte
    started a topic Comparing a Random Value with an entry problem..

    Comparing a Random Value with an entry problem..

    Hi all, i have a simple application which i couldnt run correctly. My codes;
    --------------------------------------------------------
    Code:
    using System;
    using System.Collections.Generic;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    
    protected void Page_Load(object sender, EventArgs e)
    {
        Random r = new Random();  
        int myRandom = r.Next(1000, 9999);
    ...
    See more | Go to post
    Last edited by Frinavale; Nov 8 '10, 02:26 PM. Reason: Please post code in [code] ... [/code] tags.

  • why doesn't the compiler recognize the function although I included the right libs?

    this is the code
    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    void main () {
    int b ;
    randomize () ;
    b = random (61) + 40 ;
    printf ("This is b: %d\n", b ) ;
    }
    These are the errors:

    error LNK2019:unresol ved external symbol_random referenced in function_main

    error LNK2019:unresol ved external symbol_randomiz e
    ...
    See more | Go to post

  • rhen18
    started a topic How to do pick random math operations in a C program?
    in C

    How to do pick random math operations in a C program?

    Good day!
    Im working on a math drill program where the user is asked to answer random math problems that involves the +, -, /, *, and % operators.
    Now i dont know how to generate these randomly.
    What commands and codes could I use?
    So much thanks in advance!
    Have a fruitful new year!
    See more | Go to post

  • Noss
    started a topic how to choose a random string of character in c++
    in C

    how to choose a random string of character in c++

    like if i have a list of items and each time i want the program to choose one random item for me. i know how to generate a random number..but not picking a random string of charachters in a specific list..i don't know if i explain it right but i just want a general i dea about it ..
    See more | Go to post

  • slapsh0t11
    started a topic Quadratic Sorting Algorithm Program
    in Java

    Quadratic Sorting Algorithm Program

    Hello! I need help with a program that I believe I am nearly done with. However, there seems to be a few details that preclude me from success. Here is my assignment:



    Here is my class file (Sorts.java):
    Code:
    import java.util.*;
    
    /**
     *  Description of Class
     *
     * @author     Blake Walsh
     * @created    October 20, 2009
     */
    public class Sorts{
    ...
    See more | Go to post

  • javatoil260309
    started a topic Random xml generation for testing server
    in XML

    Random xml generation for testing server

    Hi guys,
    How can I generate xml files randomly from a schema definition file.
    Currently I have an xsd, which I insatantiate each time to generate an xml.
    My requirement is to generate xml randomly such that fields in the xml conform to the xsd. Is it possible? Is there any java library which will help me do that?

    I am using jaxb right now, which lets me generate xml for an xsd. But for this I need to feed value...
    See more | Go to post

  • javatoil260309
    started a topic Random generation of xml
    in Java

    Random generation of xml

    Hi guys,
    How can I generate xml files randomly from a schema definition file.
    Currently I have an xsd, which I insatantiate each time to generate an xml.
    My requirement is to generate xml randomly such that fields in the xml conform to the xsd. Is it possible? Is there any java library which will help me do that?

    I am using jaxb right now, which lets me generate xml for an xsd. But for this I need to feed value for...
    See more | Go to post
    Last edited by Frinavale; Sep 23 '09, 11:07 PM. Reason: Merged duplicate threads.

  • how to access a folder that is randomly created by firefox

    i m creating a app that can make backup of ur browser data, i m stucked for firefox, %APPDATA%\Mozil la\Firefox\Prof iles\ - this is the address for all of your bookmarks and everything in %APPDATA%\Mozil la\Firefox\Prof iles\ thr is a folder that is generated by firefox by a random string, its different on every comp, i wanna make the *randomly genrated folder* to a zip, i know how to make zip but i wanna know how can i do it without knowing the name...
    See more | Go to post
    Last edited by vishal1082; Apr 7 '09, 05:19 AM. Reason: forgot to add something
Working...