🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.fan.gopher
Article #2130

Re: wrote

#2130
From: Gophi
Date: Sat, 04 May 2002 10:31
24 lines
2616 bytes
On Sat, 4 May 2002, Puck wrote:

> > > Istniałby, istniał... masz losowe sigi? Nie, a ja mam.
> > > Zapomniałem przy randomizie, że on zaokragla integery... ;)
> > Chyba ma zaokrąglać?...
> No ma, ale... robiłem tak (przykładowo, losowa
> of course oparta na czasie):
>  losowa * ( maxprzedział / 1000 )
> więc zawsze wychodziło zero, a teraz:
>  ( losowa * maxprzedział ) / 1000 
> i jest dobrze. :P

Ja do losowania utworów mam po prostu srand(time())
i  track = rand() % numentries, ale sobie napiszę
jeszcze coś do niepowtarzania tracków (to nie problem,
byle nie zapomnieć o kodzie resetującym, jak już
wszystko się odtworzy).

Now playing Regina - you and me.mp3.

-- 
Gophi * Bofh# 265791 * wysocki.lodz.pdi.net/~adam/
Phone#: +48503963441 * bash$ [(){ [|[&};](){ [;};]
Want more info? Finger me via gophi@cyberspace.org
Technical Details
Message-ID: <Gophi.apfg.5439.1@news.apfg.gophi.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!newsfeed.gamma.ru!Gamma.RU!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
References: <20020430.00482@news.blade.net> <Gophi.apfg.4817.1@news.apfg.gophi.net> <20020501.00742@news.blade.net> <Gophi.a

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!newsfeed.gamma.ru!Gamma.RU!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: Gophi <fraxion@skrzynka.pl>
Newsgroups: alt.pl.fan.gopher
Subject: Re: wrote
Date: Sat, 4 May 2002 12:31:39 +0200
Organization: Fanklub Gophi'ego
Lines: 24
Message-ID: <Gophi.apfg.5439.1@news.apfg.gophi.net>
References: <20020430.00482@news.blade.net> <Gophi.apfg.4817.1@news.apfg.gophi.net> <20020501.00742@news.blade.net> <Gophi.a
NNTP-Posting-Host: wysocki.lodz.pdi.net
Mime-Version: 1.0
X-Trace: news.tpi.pl 1020524269 25128 195.116.163.58 (4 May 2002 14:57:49 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Sat, 4 May 2002 14:57:49 +0000 (UTC)
In-Reply-To: <20020504.01122@news.blade.net>
X-Posting-Agent: ShellPoster v1.3 (22-04-2002) Copyright (C) 2002 Adam "Gophi" Wysocki * http://wysocki.lodz.pdi.net/~adam/shellposter/
X-Geek-Code-1: GAT d-- s+: a1985 C++ UL++ P+ L+++ E---- W- N++ K- w--- !O M--
X-License: This message is PPL-Licensed, details on http://ppl.7thGuard.net/
X-Contact-Info-1: GSM# +48503963441 (preferred voice contact)
X-Geek-Code-2: V-- PS+ PE+ Y-- PGP- t- !5 X+ R- tv- b+ DI- D+ G e- h-- r% x*
X-Contact-Info-2: EKG# 413992
X-Geek-Code-3: v3.12
X-Processed-1: This message was processed on my localhost and converted
X-Processed-2: from nnrp-spool to Hamster with my open-source converter.
X-Processed-3: Send beer, t-shirts, pizza and bug-reports directly to me.
X-No-Archive: yes
X-More-Info: If you want more info about me, finger gophi@cyberspace.org
X-Newsreader: Pine 4.10 / Red Hat Linux 6.1 / Kernel 2.2.12-20
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit