Top "Random-access" questions

Random access is the possibility of accessing any given record in a collection in the same time in contrast to sequential access in which distant records take longer to access than nearby records.

Reaching a specific line in a file using RandomAccessFile

Is it possible to position cursor to the start of a specific line in a file through RandomAccessFile? For e.…

java file random-access
STL deque accessing by index is O(1)?

I've read that accessing elements by position index can be done in constant time in a STL deque. As far …

c++ stl deque random-access
random access file in java

I have the following fields: Inventory control (16 byte record) Product ID code (int – 4 bytes) Quantity in stock (int – 4 bytes) Price (…

java random-access
Subtracting and comparing random-access iterators: why and where?

I am developing a small library for my work, and I derived a few classes from the standard random-access iterator …

c++ iterator random-access
c# Fastest way to randomly index into an array

I have an array of double values "vals", I need to randomly index into this array and get a value. …

c# arrays random random-access
Does FileInputStream.skip() do a seek?

I want to copy the last 10MB of a possibly large file into another file. Ideally I would use FileInputStream, …

java inputstream seek random-access
C++ nested iterators

Is it OK to have a nested iterator like the following? for (vector<type>::iterator i = list.begin(); …

c++ iterator nested-loops random-access
java.io.FileNotFoundException when using RandomAccessFile to create file

I'm encountering a FileNotFoundException when I try to make a file using RandomAccessFile: RandomAccessFile file = new RandomAccessFile("/test.jpg", "rw"); …

java android filenotfoundexception random-access
Random string in template django

Is there any way to have a random string in a django template ? I would like to have multiple strings …

django templates random-access
random.choice() returns same value at the same second, how does one avoid it?

I have been looking at similar questions regarding how to generate random numbers in python. Example: Similar Question - but …

python random random-access