Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Randomly changing numbers
#5
At the moment I have that, which shows a list of numbers that I have, and separates them. What I am trying to do is take numbers from that list and alter some randomly.
fr = open('cell.raw','r')
cell = fr.read()
listofcell1=(cell.replace('\n', ' '))
listofcell2=listofcell1.split(' ')
print(listofcell2)
fr.close()
Reply


Messages In This Thread
Randomly changing numbers - by NicoConti - Mar-26-2018, 11:30 AM
RE: Randomly changing numbers - by nilamo - Mar-26-2018, 02:51 PM
RE: Randomly changing numbers - by NicoConti - Mar-26-2018, 04:57 PM
RE: Randomly changing numbers - by cosmin_rusu - Mar-26-2018, 05:54 PM
RE: Randomly changing numbers - by NicoConti - Mar-27-2018, 03:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyaudio seems to randomly halt input. elpidiovaldez5 2 418 Jan-22-2024, 09:07 AM
Last Post: elpidiovaldez5
  Problem with code / audio is playing randomly, not matching csv requirements Daniel_kcr 2 659 Sep-07-2023, 05:09 PM
Last Post: deanhystad
  how to take a screnshot by Pyautogui automatically and randomly rachidel07 0 3,578 Feb-03-2021, 01:16 PM
Last Post: rachidel07
  module logging posting randomly DJ_Qu 2 2,239 May-14-2019, 06:41 AM
Last Post: DJ_Qu
  Print Numbers starting at 1 vertically with separator for output numbers Pleiades 3 3,765 May-09-2019, 12:19 PM
Last Post: Pleiades
  Can I search from Python, automatically and randomly generated keywords in Google? xX_Prophit_Xx 0 2,326 Sep-07-2018, 04:43 PM
Last Post: xX_Prophit_Xx
  Python seems to be randomly blowing up parmort 6 3,299 Aug-22-2018, 09:47 PM
Last Post: parmort
  How to print the names of assignments if they are randomly selected Kongurinn 2 3,352 Oct-22-2017, 07:31 AM
Last Post: buran
  Logic error when comparing randomly generated integers SadoDeomeoon 5 4,699 Jun-05-2017, 02:38 PM
Last Post: SadoDeomeoon

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020