Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
OrgChart JS 4.9.7
iScripts CyberMatch 1.3.3
AnyGantt JS Gantt Charts 8.7.0
Database Workbench Pro 5.6.8
Devart SSIS Data Flow Components 1.10.1
SentiMask SDK Trial 2.0.193121
dbForge Studio for SQL Server 5.8
ODBC Driver for ASE 2.1.2
The C# OCR Library 4.4.0
ODBC Driver for xBase 2.1
Rapid PHP 2018 15.5
IBDAC 6.4
Online Course Booking Script 1.3.3
Job Portal Script 1.3.2
The C# PDF Library 5.2
Top Code
iScripts CyberMatch 1.3
Database Workbench Pro 5.6.8
dbForge Studio for SQL Server 5.5
Availability Booking Calendar PHP 1.0
Online Course Booking Script 3.04
ATN Resume Finder 2.0
PHP Review Script 1.0
ATN Site Builder 3.0
Devart SSIS Data Flow Components 1.0
IBDAC 6.4
Azizi search engine script PHP 4.1.10
ICPennyBid Penny Auction Script 4.0
The C# PDF Library 1.0
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Classy script, Classy Website Clone 2.0.4
Top Rated
VisualNEO Web 2018.12.15
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Random user generator 
File ID: 64059






Random user generator 
Download Random user generator http://code.activestate.com/recipes/578055-random-user-generator/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 160
User Rating:4 Stars  (2 ratings)
Submit Rating:
Random user generator  Description
Description: I've worked on a random user generator in C a long time ago, so I thought I'd make an advanced version of it in Python(3.2). I'll have you know, I am an amateur in Python and even programming for that matter so I'd really appreciate some criticism on my code and what more can be added.

About the program - I've added a default list of users, you can modify the list to your convenience and for data persistence, I made use of the pickle module. The random module plays the pivotal role generating the output making use of the choice method. Those along with the os module if the program is being run for the first time on a pc, it will create a data file with the default list.After some digging around, I managed to find os.getlogin() from the python library which was exactly what I was looking for (to get the computer's name making sure it can get the data file to the correct directory). I'm a little skeptical about that part, wondering whether or not it will work on every pc.

License: Freeware

Related: Generator, pickle, python3, Random

O/S:Windows

Downloads: 160



More Similar Code

Random License Generator allows you to create registration numbers of any specified length and format, as well as tools for connecting and working with a database of existing registration numbers.

If you wish to use this script in conjunction with a MySQL database for logging registration numbers and ensuring that the same number is not re-used, you must perform the corresponding tables setup.

The script is very easy to...



Implements a complementary-multiply-with-carry psuedo-random-number-generator. Period is 3636507990 * 2 ** 43487 (approximately 10 ** 13101).



MVG is a multivariate Gaussian (normal) random number generator. A user can generate a vector from the multivariate normal distribution of any dimension by specifying a mean vector and symmetric positive-definite covariance matrix. A linear...



A very simple random integer generator using rand().
[just for educational purpose ;) !!]



Random Password Generator is a simple and effective online randomizer capable of generating arbitrary passwords. This program is simple and creates each and every password according to the supplied data. This is an useful PHP application for...



Super Random Link Generator can be used by the webmasters to provide visitors a facility to visit their desired page instantly. It is possible when the web owners insert / this program on any page of their website and also add the links to that...



Generation Of Solid Shapes Using Random Number Generator.
The Solid Shapes included are:
1) Cuboid/Cube
2) Sphere
3) Cone
4) Conical Frustum
5) Pyramid
6) Pyramidal Frustum
7) Cylinder

Take it as...



This is a Random Sequence generator used in Cryptography, Spread Spectrum, Information Security



The function TRUERAND returns truly random integers using random.org's Random Integer Generator. According to random.org, the numbers are generated based on atmospheric noise and skew-corrected to generate uniform numbers. The generated numbers...



This is a pseudo-random number generator test.

(There are many known tests for pseudo-random generators
but I came up w/ this one on my own. I don't know
if it is an already known method or not.)

Idea is this:

User Review for Random user generator
- required fields
     

Please enter text on the image