Aller au contenu
Règlement du forum ×
IPTV et arnaques ×

[Aide] Générer des nombres...


Fr0mY0u

Messages recommandés

salam alikoum!

 

J'aimerais creer un fichier texte qui ne contient que des nombres...

Ce que je veux, c'est savoir s'il existe un logiciel pour générer tous les nombres possible avec des nombres de 4chiffres jusqu'a 6 chiffres.

 

Par exemple:

0000
0001
0002
0003
......
......
......
999996
999997
999998
999999

 

Voila, j'espere été assez précis :)

Je peu les générer en md5 ou avec l'alogrithme qu'on veut mais le probleme c'est comment extraire la partie ASCII des tables ? :/

 

J'accepte toutes les solutions ;)

Modifié par Fr0mY0u
Lien vers le commentaire
Partager sur d’autres sites

Salam..

 

tu n'as pas précisé dans quel langage tu veux le programme, et je ne sais pas si c'est le code source qui t'intéresse ou bien juste l'application.

 

As tu essayé avec la fonction random de Delphi ou C++ builder?..genre random [0..90000]?

et il suffit d'enregistrer le résultat sous format ".txt" en utilisant "richedit" ou "memo" pour sauvegarder les chiffres..

j'ai besoin de plus d'éclaircissements là-dessus.

Modifié par Anazorium
Lien vers le commentaire
Partager sur d’autres sites

Bonsoir

 

J'aimerais creer un fichier texte qui ne contient que des nombres...

Ce que je veux, c'est savoir s'il existe un logiciel pour générer tous les nombres possible avec des nombres de 4chiffres jusqu'a 6 chiffres.

 

Pour cela y a pas de problème.

 

mais le probleme c'est comment extraire la partie ASCII des tables ?

 

On parlais de fichier *.TXT et on se retrouve avec du code ASCII dans des Tables ???

 

Je crois que tu à omis une phrase au milieu ?

 

Si tu peut pas expliciter, donne un exemple numérique, genre j'ai "chr[65]" dans une table de type "Mysql, DBF etc.. et je veut avoir un output du genre "Hello World"

 

Cordialement

Lien vers le commentaire
Partager sur d’autres sites

je savais bien que j'ai mal expliqué :/

 

Alors si j'explique le plus simplement possible, je veux creer un fichier txt qui ne contient que des nombres allant de 0000 jusqu'a 999999.

 

Quand je mentionnai les tables, j'ai disai qu'il était simple de creer cette suite de nombre avec un logiciel tel que RainbowTable... Mais le probleme c'est qu'il contient aussi la version crypté des nombres et je n'ai aucune idée comment extraire seulement les nombres! *et je ne sais meme pas si c'est possible :(

 

Bon j'ai décidé de codé moi meme un petit soft qui va faire ca pour moi.

Pour ceux a qui ca interesse, quand j'aurais fini, je le posterai apres...

Mon code comportera :

-une valeur initiale avec

int i = 0;

-une boucle genre

while (i 

-avec une incrementation [code]i++
Modifié par Fr0mY0u
Lien vers le commentaire
Partager sur d’autres sites

Salam..

 

tu n'as pas précisé dans quel langage tu veux le programme, et je ne sais pas si c'est le code source qui t'intéresse ou bien juste l'application.

 

As tu essayé avec la fonction random de Delphi ou C++ builder?..genre random [0..90000]?

et il suffit d'enregistrer le résultat sous format ".txt" en utilisant "richedit" ou "memo" pour sauvegarder les chiffres..

j'ai besoin de plus d'éclaircissements là-dessus.

 

Merci mais justement j'ai pas besoin de random :)

J'ai besoin de toutes les valeurs

Lien vers le commentaire
Partager sur d’autres sites

voila :)

<?php

for ($num1 = 0; $num1

{

for ($num2 = 0; $num2

{

for ($num3 = 0; $num3

{

for ($num4 = 0; $num4

{

$num = $num1.$num2.$num3.$num4;

print $num.'

';

}

}

}

}

for ($num1 = 0; $num1

{

for ($num2 = 0; $num2

{

for ($num3 = 0; $num3

{

for ($num4 = 0; $num4

{

for ($num5 = 0; $num5

{

$num = $num1.$num2.$num3.$num4.$num5;

print $num.'

';

}

}

}

}

}

for ($num1 = 0; $num1

{

for ($num2 = 0; $num2

{

for ($num3 = 0; $num3

{

for ($num4 = 0; $num4

{

for ($num5 = 0; $num5

{

for ($num6 = 0; $num6

{

$num = $num1.$num2.$num3.$num4.$num5.$num6;

print $num.'

';

}

}

}

}

}

}

?>

 

il ne reste plus qu'à trouver une machine assez puissante pour calculer tout ça :D

Modifié par Golden-boy
Lien vers le commentaire
Partager sur d’autres sites

ma version en C ;)

 

#include 
#include 

int main(int argc, char *argv[])
{
   FILE* fichier = NULL;
   int i = 0, j = 0, k = 0;

   fichier = fopen("num_all.file", "w");

   printf("Loading...");

       while (i         {
           fprintf(fichier, "000%ld\n", i++);
           fprintf(fichier, "0000%ld\n", j++);
           fprintf(fichier, "00000%ld\n", k++);
       }

       while (i         {
           fprintf(fichier, "00%ld\n", i++);
           fprintf(fichier, "000%ld\n", j++);
           fprintf(fichier, "0000%ld\n", k++);
       }

       while (i         {
           fprintf(fichier, "0%ld\n", i++);
           fprintf(fichier, "00%ld\n", j++);
           fprintf(fichier, "000%ld\n", k++);
       }

       while (i         {
           fprintf(fichier, "%ld\n", i++);
           fprintf(fichier, "0%ld\n", j++);
           fprintf(fichier, "00%ld\n", k++);
       }

       while (j         {
           fprintf(fichier, "%ld\n", j++);
           fprintf(fichier, "0%ld\n", k++);
       }

       while ( k         {
           fprintf(fichier, "%ld\n", k++);
       }

   fclose(fichier);


   return 0;
}

Lien vers le commentaire
Partager sur d’autres sites

  • 11 years later...

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

×   Collé en tant que texte enrichi.   Coller en tant que texte brut à la place

  Seulement 75 émoticônes maximum sont autorisées.

×   Votre lien a été automatiquement intégré.   Afficher plutôt comme un lien

×   Votre contenu précédent a été rétabli.   Vider l’éditeur

×   Vous ne pouvez pas directement coller des images. Envoyez-les depuis votre ordinateur ou insérez-les depuis une URL.

  • Messages

    • Dans le secteur de la construction routière moderne, l'efficacité et la durabilité sont primordiales. Après une dizaine d'étapes essentielles, l'usine d’enrobé à froid s’impose comme une solution écologique et économique. Elle permet une production sans chauffage, réduisant ainsi les coûts énergétiques et les émissions. Adaptée aux travaux d’entretien et aux zones à accès limité, cette technologie garantit une mise en œuvre rapide. Choisissez une performance durable avec cette méthode innovante de fabrication d’enrobé.
    • Bonjour,    Je peux proposer des abonnements avec un des meilleurs fournisseurs Iptv.   Live et vod très complet.Des serveurs fiables et stables.  Le parrainage est possible ainsi que divers bonus.    Si vous voulez en savoir plus, n’hésitez pas à me contacter. 
    • The Chocolate Packaging Machine plays a vital role in advancing sustainable packaging within the confectionery industry. As consumer demand grows for eco-friendly products, manufacturers are seeking packaging solutions that reduce environmental impact without compromising chocolate quality or shelf life. Modern chocolate packaging machines enable the use of sustainable materials and efficient processes that align with green manufacturing goals. Why Is Sustainable Packaging Important? Sustainable packaging aims to minimize waste, reduce resource consumption, and enhance recyclability or biodegradability. It contributes to lowering carbon footprints and responding to consumer preferences for environmentally responsible products. How Do Chocolate Packaging Machines Facilitate Sustainability?   Aspect Sustainable Practice Benefits Material Compatibility Support for recyclable and biodegradable films Reduces plastic waste and landfill burden Precise Packaging Accurate dosing and sealing to minimize excess Less material use and food waste Energy Efficiency Machines designed to consume less power Decreases operational carbon emissions Waste Reduction Automated controls to reduce packaging defects Limits material discard during production What Packaging Materials Are Used? Chocolate packaging machines increasingly accommodate eco-friendly films such as compostable bioplastics, recycled paper laminates, and other sustainable composites that maintain product freshness while being kinder to the planet. How Does Automation Help? Automation optimizes material usage, reduces errors, and allows for quick changeovers to sustainable packaging formats, supporting flexible production without sacrificing efficiency. At Zjrctech, we are committed to providing advanced Chocolate Packaging Machines that support sustainable packaging initiatives. Our equipment is designed to integrate with eco-friendly materials and incorporate energy-saving technologies, helping your business meet environmental goals while delivering superior product protection. Learn more about our sustainable packaging solutions. Visit: http://zjrctech.com/
    • Training operators for efficient Twist Packaging Machine use is essential to maximize the machine’s performance, minimize downtime, and ensure product quality. Proper training empowers operators with the knowledge to handle the machine safely, troubleshoot minor issues, and maintain smooth operations. Why Is Operator Training Critical? Operators who understand machine mechanics and controls can prevent common errors that lead to packaging defects or equipment damage. Skilled operators also contribute to faster changeovers and better adherence to production schedules. Key Training Components   Training Aspect Description Benefits Machine Operation How to start, run, and stop the machine Safe and efficient daily use Troubleshooting Identifying and resolving common problems Reduces downtime Maintenance Routine cleaning and part replacement Extends machine lifespan Safety Procedures Guidelines to prevent accidents Ensures operator and equipment safety Quality Control Recognizing packaging defects Maintains product standards What Training Methods Work Best? Combining hands-on practice with detailed manuals and video tutorials helps operators learn effectively. Regular refresher courses and assessments keep skills up to date. How Does Training Impact Production? Well-trained operators improve throughput, reduce waste, and enhance the overall reliability of the packaging line, directly benefiting a company’s bottom line. At Zjrctech, we provide comprehensive training support for our Twist Packaging Machines to ensure clients achieve optimal performance and efficiency. Our expert team offers tailored training programs designed to meet your facility’s unique needs. Explore our advanced packaging solutions and training services. Visit: http://zjrctech.com/
    • Selecting the right material for shower drains is crucial for long-lasting performance, durability, and appearance. Stainless steel has become a preferred choice among Shower Drain China products due to its outstanding properties that meet the demands of modern bathrooms. Why Stainless Steel? Stainless steel offers superior corrosion resistance, essential in constantly wet environments like showers. Its resistance to rust and staining ensures that the drain maintains a clean, attractive look over time. Additionally, stainless steel’s strength and durability allow it to withstand heavy foot traffic and impacts. Key Advantages   Advantage Description Corrosion Resistance Stainless steel resists oxidation and chemical damage from water and cleaning agents. High Durability Strong material that maintains integrity under physical stress and daily use. Easy Maintenance Smooth surfaces prevent grime buildup and make cleaning easier, promoting hygiene. Aesthetic Appeal Polished or brushed finishes enhance the overall bathroom design. Eco-Friendly Stainless steel is recyclable, contributing to sustainable building practices. Enhanced Safety and Hygiene Stainless steel drains can be designed with anti-slip patterns and smooth finishes that discourage bacterial growth, helping maintain a clean and safe shower environment. Customization Opportunities Manufacturers in China offer OEM and ODM services, allowing customers to customize stainless steel shower drains in size, shape, and surface finish. This flexibility supports diverse project requirements and design preferences. Long-Term Value Though stainless steel shower drains may have a higher upfront cost than plastic alternatives, their longevity and minimal maintenance needs offer better overall value by reducing replacement frequency and associated labor costs. At Hasen-home, we pride ourselves on producing premium Shower Drain China products made from high-quality stainless steel. Our customizable solutions, combined with stringent quality control, ensure durability, elegance, and reliable performance tailored to your project. Choose Hasen-home for stainless steel shower drains that elevate both function and style. Learn more: https://www.hasen-home.com/news/shower-channle-drain-factory-zhejiang-hasen.html
×
×
  • Créer...