by: Code_Dark |
last post by:
Hi, sorry to bore you with my newbie questions, but I _am_ a newbie
so.. right. Anyway, I was working out a "number guessing game", which
works fine, except I wanted to make the number a random...
|
by: Paul Rubin |
last post by:
http://www.nightsong.com/phr/python/sharandom.c
This is intended to be less predicable/have fewer correlations than
the default Mersenne Twister or Wichmann-Hill generators. Comments
are...
|
by: Bill |
last post by:
Hello,
If I type the following code directly into the interpreter, it works. If I
run it from a script, it generates the following error. Can someone help?
Thanks!
------------------------
...
|
by: Rob B |
last post by:
Hello,
I am just starting to learn Python and was writing a simple script on
my machine (Mac OS X 10.3.4), but I can't seem to import the random
module:
#!/usr/bin/env python
import random
|
by: Harlin Seritt |
last post by:
I looked all over the net but could not find if it is possible to
insert wildcards into strings. What I am trying to do is this: I am
trying to parse text from a Bible file. In case you're not...
|
by: Glenn Wilson |
last post by:
I have a quick Question and I Hope some one can help or at least explain.
What is happening is that I am trying to use random numbers in an application, as per the sample test code below. When I...
|
by: DataSmash |
last post by:
Hi,
When I import the random module at the python interpreter, it works
fine:
>>> import random
>>> x = random.randint(1,55)
>>> print x
14
>>>
BUT, when I put the same code in a python...
|
by: Alan Isaac |
last post by:
Running test.py will print False.
Is this expected/desirable?
Thanks,
Alan Isaac
%%%%%%% test.py %%%%%%%%%%%
from random import seed, getstate
seed(217)
x = getstate()
|
by: Alan Isaac |
last post by:
This may seem very strange, but it is true.
If I delete a .pyc file, my program executes with a different state!
In a single directory I have
module1 and module2.
module1 imports random and...
|
by: Andrew F |
last post by:
I'm a linux user and I just upgraded from 2.1 to 2.5 and changed the
location of a number of libraries and tools.
So far I've tracked most errors, but this one has me scratching my
head :
$...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|