We investigate how much randomness can be extracted from a generic partially entangled pure state of two qubits in a device-independent setting. where a Bell test is used to certify the correct functioning of the apparatus. For any such state. we first show that two bits of randomness are always attainable both if projective measurements are used to generate the randomness globally or... https://www.pomyslnaszycie.com/